home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sources / bugs / 266 next >
Encoding:
Text File  |  1992-11-07  |  8.2 KB  |  307 lines

  1. Newsgroups: comp.sources.bugs
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!osiris.cso.uiuc.edu!egray
  3. From: egray@osiris.cso.uiuc.edu (Emmet P. Gray)
  4. Subject: Patch #2 to Pcomm v2.0
  5. Message-ID: <BxAtsx.JuE@news.cso.uiuc.edu>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: US Army Corps of Engineers - Construction Eng Research Lab
  8. Date: Fri, 6 Nov 1992 14:34:07 GMT
  9. Lines: 296
  10.  
  11.  
  12. This is patch #2 to the Pcomm v2.0 distribution package.  Pcomm is a
  13. public domain, menu driven, telecommunication program for Unix designed
  14. to operate similarily to the popular MSDOS program, ProComm.
  15.  
  16. This patch will fix a few problems with possible loss of the inherited
  17. environment for child processes, and a bug in the data and print logging
  18. when used during scripts.
  19.  
  20. Emmet P. Gray                US Army, HQ III Corps & Fort Hood
  21. ...!uunet!uiucuxc!fthood!egray        Attn: AFZF-DE-ENV
  22. fthood!egray@uxc.cso.uiuc.edu        Directorate of Engineering & Housing
  23.                     Environmental Management Office
  24.                     Fort Hood, TX 76544-5057
  25.  
  26. -------------------------------------------------------------------------------
  27. Prereq: "2.0.1"
  28. *** old/patchlevel.h    Sun Sep  6 16:06:50 1992
  29. --- patchlevel.h    Thu Nov  5 08:07:18 1992
  30. ***************
  31. *** 1,2 ****
  32. ! #define VERSION "2.0.1"
  33. ! #define DATE "6 Sep 92"
  34. --- 1,2 ----
  35. ! #define VERSION "2.0.2"
  36. ! #define DATE "6 Nov 92"
  37. *** old/Configure.sh    Sun Sep  6 16:06:45 1992
  38. --- Configure.sh    Fri Oct  2 07:35:57 1992
  39. ***************
  40. *** 16,27 ****
  41.   if [ -d /usr/spool/locks ] ;then
  42.       echo "Your UUCP lock files go in /usr/spool/locks"
  43. !     echo "Therefore you need:    #define LOCK_FILE \"/usr/spool/locks\""
  44.   else
  45.       if [ -d /usr/spool/uucp/LCK ]; then
  46.           echo "Your UUCP lock files go in /usr/spool/uucp/LCK"
  47. !         echo "Therefore you need:    #define LOCK_FILE \"/usr/spool/uucp/LCK\""
  48.       else
  49.           echo "Your UUCP lock files go in /usr/spool/uucp"
  50. !         echo "Therefore you need:    #define LOCK_FILE \"/usr/spool/uucp\""
  51.       fi
  52.   fi
  53. --- 16,27 ----
  54.   if [ -d /usr/spool/locks ] ;then
  55.       echo "Your UUCP lock files go in /usr/spool/locks"
  56. !     echo "Therefore you need:    #define LOCK_DIR \"/usr/spool/locks\""
  57.   else
  58.       if [ -d /usr/spool/uucp/LCK ]; then
  59.           echo "Your UUCP lock files go in /usr/spool/uucp/LCK"
  60. !         echo "Therefore you need:    #define LOCK_DIR \"/usr/spool/uucp/LCK\""
  61.       else
  62.           echo "Your UUCP lock files go in /usr/spool/uucp"
  63. !         echo "Therefore you need:    #define LOCK_DIR \"/usr/spool/uucp\""
  64.       fi
  65.   fi
  66. *** old/Release.notes    Sun Sep  6 16:06:47 1992
  67. --- Release.notes    Thu Nov  5 08:25:32 1992
  68. ***************
  69. *** 1,2 ****
  70. --- 1,9 ----
  71. + Patch #2, 6 Nov 92
  72. + This patch will fix a few problems with possible loss of the inherited
  73. + environment for child processes, and a bug in the data and print logging
  74. + when used during scripts.
  75. + -----------------------------------------------------------------------------
  76.   Patch #1, 6 Sep 92
  77.   
  78. *** old/Unixpc.shar    Sun Sep  6 16:06:47 1992
  79. --- Unixpc.shar    Fri Oct  2 07:52:11 1992
  80. ***************
  81. *** 9,15 ****
  82.   #    Setup.sh
  83.   #    config.h
  84. ! # This archive created: Fri Jul 17 13:45:30 1992
  85.   export PATH; PATH=/bin:/usr/bin:$PATH
  86. ! echo shar: "extracting 'Makefile'" '(6623 characters)'
  87.   if test -f 'Makefile'
  88.   then
  89. --- 9,15 ----
  90.   #    Setup.sh
  91.   #    config.h
  92. ! # This archive created: Sun Sep  6 13:04:17 1992
  93.   export PATH; PATH=/bin:/usr/bin:$PATH
  94. ! echo shar: "extracting 'Makefile'" '(6665 characters)'
  95.   if test -f 'Makefile'
  96.   then
  97. ***************
  98. *** 39,42 ****
  99. --- 39,46 ----
  100.   X#LD = /usr/5bin/cc
  101.   X
  102. + X#for SVR3.2
  103. + X#SHLIB = -lc_s
  104. + X#OTHER = -lpt
  105. + X
  106.   X#LD = cc
  107.   X#SHLIB =
  108. ***************
  109. *** 223,229 ****
  110.   Xwaitfor.o:    config.h
  111.   SHAR_EOF
  112. ! if test 6623 -ne "`wc -c < 'Makefile'`"
  113.   then
  114. !     echo shar: "error transmitting 'Makefile'" '(should have been 6623 characters)'
  115.   fi
  116.   fi
  117. --- 227,233 ----
  118.   Xwaitfor.o:    config.h
  119.   SHAR_EOF
  120. ! if test 6665 -ne "`wc -c < 'Makefile'`"
  121.   then
  122. !     echo shar: "error transmitting 'Makefile'" '(should have been 6665 characters)'
  123.   fi
  124.   fi
  125. ***************
  126. *** 504,508 ****
  127.   fi
  128.   fi
  129. ! echo shar: "extracting 'config.h'" '(2446 characters)'
  130.   if test -f 'config.h'
  131.   then
  132. --- 508,512 ----
  133.   fi
  134.   fi
  135. ! echo shar: "extracting 'config.h'" '(2524 characters)'
  136.   if test -f 'config.h'
  137.   then
  138. ***************
  139. *** 592,595 ****
  140. --- 596,602 ----
  141.   X#undef    HAVE_USLEEP
  142.   X
  143. + X/* Does your system have the truncate() system call? */
  144. + X#undef    HAVE_TRUNCATE
  145. + X
  146.   X/* typedef void SIG_TYPE; */
  147.   Xtypedef int SIG_TYPE;
  148. ***************
  149. *** 600,606 ****
  150.   X#endif /* BSD */
  151.   SHAR_EOF
  152. ! if test 2446 -ne "`wc -c < 'config.h'`"
  153.   then
  154. !     echo shar: "error transmitting 'config.h'" '(should have been 2446 characters)'
  155.   fi
  156.   fi
  157. --- 607,613 ----
  158.   X#endif /* BSD */
  159.   SHAR_EOF
  160. ! if test 2524 -ne "`wc -c < 'config.h'`"
  161.   then
  162. !     echo shar: "error transmitting 'config.h'" '(should have been 2524 characters)'
  163.   fi
  164.   fi
  165. *** old/cmd.c    Sun Sep  6 16:06:47 1992
  166. --- cmd.c    Thu Nov  5 10:49:19 1992
  167. ***************
  168. *** 25,29 ****
  169.       char buf[256], *s, arg2[256], *strchr(), *str_rep();
  170.       char *entry, *strtok(), ld_code;
  171. !     void hang_up(), line_set(), pexit(), screen_dump();
  172.   
  173.       if (ipc_read(status->cmd_ipc, buf, 256))
  174. --- 25,30 ----
  175.       char buf[256], *s, arg2[256], *strchr(), *str_rep();
  176.       char *entry, *strtok(), ld_code;
  177. !     void hang_up(), line_set(), pexit(), screen_dump(), log_toggle();
  178. !     void lpr_toggle();
  179.   
  180.       if (ipc_read(status->cmd_ipc, buf, 256))
  181. ***************
  182. *** 226,230 ****
  183.               break;
  184.           case PRINTER:
  185. !             status->print_status = arg1;
  186.               break;
  187.           case MODEM_BREAK:
  188. --- 227,232 ----
  189.               break;
  190.           case PRINTER:
  191. !             if (status->print_status + arg1 == 1)
  192. !                 lpr_toggle();
  193.               break;
  194.           case MODEM_BREAK:
  195. ***************
  196. *** 241,245 ****
  197.               break;
  198.           case DATA_LOG:
  199. !             status->log_status = arg1;
  200.               break;
  201.           default:
  202. --- 243,251 ----
  203.               break;
  204.           case DATA_LOG:
  205. !             if (status->log_status + arg1 == 1) {
  206. !                 if (arg1 == 1 && !strcmp(status->log_path, "NOT_DEFINED"))
  207. !                     status->log_path = str_rep(status->log_path, param->logfile);
  208. !                 log_toggle();
  209. !             }
  210.               break;
  211.           default:
  212. *** old/pcomm_cmd.c    Sun Sep  6 16:06:50 1992
  213. --- pcomm_cmd.c    Wed Nov  4 08:40:37 1992
  214. ***************
  215. *** 33,37 ****
  216.       static char *xfer_args[] = {"XMODEM", "XMODEM_1K", "MODEM7", "YMODEM",
  217.       "YMODEM_G", "ASCII", "EXT_1", "EXT_2", "EXT_3", 0};
  218. !     char *command, buf[40], *mkupper(), *arg1, *arg2, *s, *strchr();
  219.       char *pcomm_cmd, *getenv();
  220.       int cmd_num, i, arg_num, got_it;
  221. --- 33,37 ----
  222.       static char *xfer_args[] = {"XMODEM", "XMODEM_1K", "MODEM7", "YMODEM",
  223.       "YMODEM_G", "ASCII", "EXT_1", "EXT_2", "EXT_3", 0};
  224. !     char *command, buf[256], *mkupper(), *arg1, *arg2, *s, *strchr();
  225.       char *pcomm_cmd, *getenv();
  226.       int cmd_num, i, arg_num, got_it;
  227. *** old/s_prompt.c    Sun Sep  6 16:06:51 1992
  228. --- s_prompt.c    Thu Nov  5 08:00:53 1992
  229. ***************
  230. *** 28,32 ****
  231.       wrefresh(win);
  232.   
  233. !     if ((ans = get_str(win, 80, "", "\n")) == NULL)
  234.           return(NULL);
  235.                       /* check the value */
  236. --- 28,32 ----
  237.       wrefresh(win);
  238.   
  239. !     if ((ans = get_str(win, 80, "", ";\n")) == NULL)
  240.           return(NULL);
  241.                       /* check the value */
  242. *** old/script.c    Sun Sep  6 16:06:52 1992
  243. --- script.c    Fri Oct  2 07:46:44 1992
  244. ***************
  245. *** 258,285 ****
  246.       int n;
  247.       extern char **environ;
  248. !     char **envp, buf[80], **temp, *malloc(), *str_dup();
  249.   
  250.                       /* how many variables do we have? */
  251. !     temp = environ;
  252.       n = 0;
  253. !     while (*temp != NULL) {
  254.           n++;
  255. !         temp++;
  256.       }
  257.   
  258.       envp = (char **) malloc((n+2) * sizeof(char *));
  259. !     temp = envp;
  260. !     while (*environ != NULL) {
  261.                       /* don't copy an old value */
  262. !         if (strncmp(*environ, "PCOMM_CMD=", 10)) {
  263. !             *temp = str_dup(*environ);
  264. !             temp++;
  265.           }
  266. !         environ++;
  267.       }
  268.       sprintf(buf, "PCOMM_CMD=%s", key);
  269. !     *temp = str_dup(buf);
  270. !     temp++;
  271. !     *temp = NULL;
  272.       return(envp);
  273.   }
  274. --- 258,286 ----
  275.       int n;
  276.       extern char **environ;
  277. !     char **envp, buf[80], **old, **new, *malloc(), *str_dup();
  278.   
  279.                       /* how many variables do we have? */
  280. !     old = environ;
  281.       n = 0;
  282. !     while (*old != NULL) {
  283.           n++;
  284. !         old++;
  285.       }
  286.   
  287.       envp = (char **) malloc((n+2) * sizeof(char *));
  288. !     new = envp;
  289. !     old = environ;
  290. !     while (*old != NULL) {
  291.                       /* don't copy an old value */
  292. !         if (strncmp(*old, "PCOMM_CMD=", 10)) {
  293. !             *new = str_dup(*old);
  294. !             new++;
  295.           }
  296. !         old++;
  297.       }
  298.       sprintf(buf, "PCOMM_CMD=%s", key);
  299. !     *new = str_dup(buf);
  300. !     new++;
  301. !     *new = NULL;
  302.       return(envp);
  303.   }
  304. End of Patch
  305.