home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / info-service / gopher / Unix / gopher2.0-patches / patch1 < prev    next >
Encoding:
Text File  |  1993-08-03  |  25.9 KB  |  967 lines

  1. diff -c gopher+/patchlevel.h:3.2 gopher+/patchlevel.h:3.3
  2. *** gopher+/patchlevel.h:3.2    Tue Aug  3 16:08:18 1993
  3. --- gopher+/patchlevel.h    Tue Aug  3 16:08:19 1993
  4. ***************
  5. *** 5,8 ****
  6.   #define GOPHER_MAJOR_VERSION "2"
  7.   #define GOPHER_MINOR_VERSION "0"
  8.   
  9. ! #define PATCHLEVEL 0
  10. --- 5,8 ----
  11.   #define GOPHER_MAJOR_VERSION "2"
  12.   #define GOPHER_MINOR_VERSION "0"
  13.   
  14. ! #define PATCHLEVEL 1
  15. diff -c gopher+/doc/client.changes:3.5 gopher+/doc/client.changes:3.6
  16. *** gopher+/doc/client.changes:3.5    Tue Aug  3 16:08:20 1993
  17. --- gopher+/doc/client.changes    Tue Aug  3 16:08:20 1993
  18. ***************
  19. *** 1,4 ****
  20. ! $Id: client.changes,v 3.5 1993/07/30 17:27:31 lindner Exp $
  21.   
  22.   * Client supports AskL: and AskP:
  23.   
  24. --- 1,23 ----
  25. ! $Id: client.changes,v 3.6 1993/08/03 21:02:03 lindner Exp $
  26. ! Gopher+2.0 patchlevel 1
  27. ! -----------------------
  28. !  * Bigger Better Badder Options, inspired by jqj
  29. !  * Audio file fix from jqj
  30. !  * Don't allow securemode types to use o
  31. !  * Bigger Better Badder Options, inspired by jqj
  32. !  * Fix for VMS unresolved variables
  33. !  * Change audio/mulaw to audio/basic for MIME
  34. ! Gopher+2.0
  35. ! ----------
  36.   
  37.   * Client supports AskL: and AskP:
  38.   
  39. diff -c gopher+/doc/server.changes:3.5 gopher+/doc/server.changes:3.6
  40. *** gopher+/doc/server.changes:3.5    Tue Aug  3 16:08:21 1993
  41. --- gopher+/doc/server.changes    Tue Aug  3 16:08:21 1993
  42. ***************
  43. *** 1,7 ****
  44. ! $Id: server.changes,v 3.5 1993/07/30 17:27:42 lindner Exp $
  45.   
  46. ! Changes from 1.2b4 to ?
  47.   -----------------------
  48.   
  49.   * Debugging can be compiled out, resulting in a smaller executable.
  50.     (Mitra)
  51. --- 1,25 ----
  52. ! $Id: server.changes,v 3.6 1993/08/03 21:03:45 lindner Exp $
  53.   
  54. ! Gopher 2.0 patchlevel 1
  55.   -----------------------
  56. +  * Fix for VMS unresolved variables
  57. +  * Fix for core dumps on HPUX 8.0
  58. +  * Ignored files are now ignored again
  59. +  * Fix for sites that have @ -> for symbolic links
  60. +  * Fix for extra slashes in FTP gateway
  61. +  * Fix for Debug syntax error when using DL
  62. +  * Compatibility fix for hpux and seteguid
  63. + Changes from 1.2b4 to 2.0
  64. + -------------------------
  65.   
  66.   * Debugging can be compiled out, resulting in a smaller executable.
  67.     (Mitra)
  68. diff -c gopher+/gopher/globals.h:3.7 gopher+/gopher/globals.h:3.9
  69. *** gopher+/gopher/globals.h:3.7    Tue Aug  3 16:08:23 1993
  70. --- gopher+/gopher/globals.h    Tue Aug  3 16:08:23 1993
  71. ***************
  72. *** 1,7 ****
  73.   /********************************************************************
  74.    * $Author: lindner $
  75. !  * $Revision: 3.7 $
  76. !  * $Date: 1993/07/27 05:28:46 $
  77.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopher/globals.h,v $
  78.    * $State: Exp $
  79.    *
  80. --- 1,7 ----
  81.   /********************************************************************
  82.    * $Author: lindner $
  83. !  * $Revision: 3.9 $
  84. !  * $Date: 1993/08/03 20:48:21 $
  85.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopher/globals.h,v $
  86.    * $State: Exp $
  87.    *
  88. ***************
  89. *** 15,20 ****
  90. --- 15,26 ----
  91.    *********************************************************************
  92.    * Revision History:
  93.    * $Log: globals.h,v $
  94. +  * Revision 3.9  1993/08/03  20:48:21  lindner
  95. +  * Audio file fix from jqj
  96. +  *
  97. +  * Revision 3.8  1993/08/03  20:24:16  lindner
  98. +  * Bigger Better Badder Options, inspired by jqj
  99. +  *
  100.    * Revision 3.7  1993/07/27  05:28:46  lindner
  101.    * Mondo Debug overhaul from Mitra
  102.    *
  103. ***************
  104. *** 55,61 ****
  105.   
  106.   #include <setjmp.h>
  107.   
  108. ! #define MAXRESP      9                  /* Max size of a response list*/
  109.   #define WHOLELINE 80                   /* Used in ourutil.c */
  110.   
  111.   /*
  112. --- 61,67 ----
  113.   
  114.   #include <setjmp.h>
  115.   
  116. ! #define MAXRESP      20                  /* Max size of a response list*/
  117.   #define WHOLELINE 80                   /* Used in ourutil.c */
  118.   
  119.   /*
  120. ***************
  121. *** 75,90 ****
  122.   /*** Global variables ***/
  123.   
  124.   EXTERN RCobj     *GlobalRC;
  125. - EXTERN String    *PrinterCommand; /*used for configuration options */
  126. - EXTERN String    *PagerCommand;   
  127. - EXTERN String    *TelnetCommand;  
  128. - EXTERN String    *MailCommand;
  129. - EXTERN String    *PlayCommand;
  130. - EXTERN String    *EditorCommand;
  131. - EXTERN String    *TN3270Command;
  132. - EXTERN String    *MIMECommand;
  133. - EXTERN String    *ImageCommand;
  134.   
  135.   EXTERN boolean   ChangedDefs INIT(FALSE);
  136.   
  137. --- 81,86 ----
  138. diff -c gopher+/gopher/gopher.c:3.21 gopher+/gopher/gopher.c:3.25
  139. *** gopher+/gopher/gopher.c:3.21    Tue Aug  3 16:08:24 1993
  140. --- gopher+/gopher/gopher.c    Tue Aug  3 16:08:24 1993
  141. ***************
  142. *** 1,7 ****
  143.   /********************************************************************
  144.    * $Author: lindner $
  145. !  * $Revision: 3.21 $
  146. !  * $Date: 1993/07/30 17:37:24 $
  147.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopher/gopher.c,v $
  148.    * $State: Exp $
  149.    *
  150. --- 1,7 ----
  151.   /********************************************************************
  152.    * $Author: lindner $
  153. !  * $Revision: 3.25 $
  154. !  * $Date: 1993/08/03 20:48:27 $
  155.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopher/gopher.c,v $
  156.    * $State: Exp $
  157.    *
  158. ***************
  159. *** 15,20 ****
  160. --- 15,32 ----
  161.    *********************************************************************
  162.    * Revision History:
  163.    * $Log: gopher.c,v $
  164. +  * Revision 3.25  1993/08/03  20:48:27  lindner
  165. +  * Audio file fix from jqj
  166. +  *
  167. +  * Revision 3.24  1993/08/03  20:26:50  lindner
  168. +  * Don't allow securemode types to use o
  169. +  *
  170. +  * Revision 3.23  1993/08/03  20:24:18  lindner
  171. +  * Bigger Better Badder Options, inspired by jqj
  172. +  *
  173. +  * Revision 3.22  1993/08/03  04:43:56  lindner
  174. +  * Fix for VMS unresolved variables
  175. +  *
  176.    * Revision 3.21  1993/07/30  17:37:24  lindner
  177.    * SecureMode fix from Mitra
  178.    *
  179. ***************
  180. *** 322,329 ****
  181.        FILE *Play;
  182.        int j;
  183.        char buf[BUFSIZE];
  184.   
  185. !      if (*STRget(PlayCommand) == '\0') {
  186.         /*** Hey! no play command, bummer ***/
  187.         CursesErrorMsg("Sorry, this machine doesn't support sounds");
  188.   
  189. --- 334,342 ----
  190.        FILE *Play;
  191.        int j;
  192.        char buf[BUFSIZE];
  193. +      char playCmd[BUFSIZE];
  194.   
  195. !      if (! RCdisplayCommand(GlobalRC, "Audio/basic", "-", playCmd)) {
  196.         /*** Hey! no play command, bummer ***/
  197.         CursesErrorMsg("Sorry, this machine doesn't support sounds");
  198.   
  199. ***************
  200. *** 330,336 ****
  201.         return;
  202.        }
  203.   
  204. !      Play = popen(STRget(PlayCommand), "w");
  205.         
  206.        
  207.        while(1) {
  208. --- 343,349 ----
  209.         return;
  210.        }
  211.   
  212. !      Play = popen(playCmd, "w");
  213.         
  214.        
  215.        while(1) {
  216. ***************
  217. *** 648,654 ****
  218. --- 661,674 ----
  219.   }
  220.   
  221.   
  222. + #ifdef VMS
  223. + #include <perror.h>
  224. + #else
  225.   extern int h_errno;
  226. + extern int sys_nerr;
  227. + extern char *sys_errlist[];
  228. + extern int  errno;
  229. + #endif
  230.   
  231.   void check_sock(sockfd, host, port)
  232.     int sockfd;
  233. ***************
  234. *** 659,668 ****
  235.        char DispString2[WHOLELINE];
  236.        char *DispStrings[4];
  237.   
  238. -      extern int sys_nerr;
  239. -      extern char *sys_errlist[];
  240. -      extern int  errno;
  241.        /* NULL DispStrings entries here, so can override below */
  242.        DispStrings[3] = NULL;
  243.   
  244. --- 679,684 ----
  245. ***************
  246. *** 833,841 ****
  247.   
  248.        GlobalRC        = RCnew();
  249.   
  250. -      PrinterCommand  = STRnew();
  251. -      MIMECommand     = STRnew();
  252.        /** get defaults from the rc file **/
  253.   
  254.        RCfromUser(GlobalRC);
  255. --- 849,854 ----
  256. ***************
  257. *** 879,893 ****
  258.   
  259.   
  260.   
  261.   static char *OptionMenu[] =
  262.   {"General Options",
  263. !  "Helper Applications",
  264. !  "Change Printer"
  265.   };
  266.   
  267. ! static char *GlobalOptions[] =  
  268. ! {"Pager Command", "Print Command", "Telnet Command", "Sound Command", "Mail Command", "3270 Emulator Command", "MIME pager", "Image Viewer", NULL};
  269.   
  270.   
  271.   void
  272.   SetOptions()
  273. --- 892,918 ----
  274.   
  275.   
  276.   
  277. + /*
  278. +  * This stuff will set the options in a nice way...
  279. +  */
  280.   static char *OptionMenu[] =
  281.   {"General Options",
  282. !  "Edit Display Applications",
  283. !  "Edit Printing Applications",
  284. !  "Add a New Application Type",
  285. !   NULL
  286.   };
  287.   
  288. ! static char *OptionNewApp[] = 
  289. ! {"Content Type Name",
  290. !  "Display Application",
  291. !  "Printing Application",
  292. !  NULL
  293. !  };
  294. !  
  295.   
  296. + static char *GlobalOptions[MAXRESP];
  297.   
  298.   void
  299.   SetOptions()
  300. ***************
  301. *** 894,900 ****
  302. --- 919,930 ----
  303.   {
  304.        static char *Responses[MAXRESP];
  305.        static int inited = FALSE;
  306. +      char *zetitle;
  307. +      int i, choice;
  308. +      RCMapObj *rcm;
  309. +      int numoptions;
  310.   
  311.        if (SecureMode || NoShellMode) {
  312.         CursesErrorMsg("Sorry, you are not allowed to set options in secure mode.");
  313.         return;
  314. ***************
  315. *** 902,910 ****
  316.   
  317.   
  318.        if (inited == FALSE) {
  319. -       int i; 
  320.         
  321. !       for (i=0; i< 8; i++) {
  322.              Responses[i] = (char *) malloc(sizeof(char) * MAXSTR);
  323.         }
  324.         Responses[i] = NULL;
  325. --- 932,939 ----
  326.   
  327.   
  328.        if (inited == FALSE) {
  329.         
  330. !       for (i=0; i< MAXRESP; i++) {
  331.              Responses[i] = (char *) malloc(sizeof(char) * MAXSTR);
  332.         }
  333.         Responses[i] = NULL;
  334. ***************
  335. *** 913,944 ****
  336.   
  337.        
  338.        /** Options menu **/
  339. -      
  340.   
  341.   
  342. !      strcpy(Responses[0], "");
  343. !      strcpy(Responses[1], STRget(PrinterCommand));
  344. !      strcpy(Responses[2], STRget(TelnetCommand));
  345. !      strcpy(Responses[3], STRget(PlayCommand));
  346. !      strcpy(Responses[4], STRget(MailCommand));
  347. !      strcpy(Responses[5], STRget(TN3270Command));
  348. !      strcpy(Responses[6], STRget(MIMECommand));
  349. !      strcpy(Responses[7], STRget(ImageCommand));
  350. !      
  351. !      if (CURRequest(CursesScreen, "Options", GlobalOptions, Responses) == 0) {
  352.   
  353. !       STRset(PrinterCommand, Responses[1]);
  354. !       STRset(TelnetCommand, Responses[2]);
  355. !       STRset(PlayCommand, Responses[3]);
  356. !       STRset(MailCommand, Responses[4]);
  357. !       STRset(TN3270Command, Responses[5]);
  358. !       STRset(MIMECommand, Responses[6]);
  359. !       STRset(ImageCommand, Responses[7]);
  360.         
  361. !       ChangedDefs = TRUE;
  362. !      }
  363.   }
  364.   
  365.   GopherDirObj *
  366.   GDdeleteGS(gd,j) 
  367.       GopherDirObj    *gd;
  368. --- 942,1026 ----
  369.   
  370.        
  371.        /** Options menu **/
  372.   
  373. +      choice = CURChoice(CursesScreen, "Gopher Options", OptionMenu,
  374. +            "Your Choice?", -1);
  375.   
  376. !      if (choice == -1)
  377. !       return;
  378.   
  379. !      switch (choice) {
  380. !      case 0:
  381. !       /** General Options **/
  382. !       CursesErrorMsg("Sorry, no general options.... yet");
  383. !       break;
  384. !      case 1:
  385. !      case 2:
  386. !       /** Display/Print Applications **/
  387. !       numoptions = RCMAgetNumEntries(GlobalRC->commands);
  388. !       if (numoptions >= MAXRESP)
  389. !            numoptions = MAXRESP - 1;
  390.         
  391. !       for (i = 0 ; i<numoptions; i++) {
  392. !            rcm = RCMAgetEntry(GlobalRC->commands, i);
  393. !            GlobalOptions[i] = RCMgetView(rcm);
  394. !            if (choice == 1)
  395. !             strcpy(Responses[i], RCMgetDisplaycmd(rcm));
  396. !            else if (choice ==2)
  397. !             strcpy(Responses[i], RCMgetPrintcmd(rcm));
  398. !       }
  399. !       GlobalOptions[i] = NULL;
  400. !       if (choice == 1)
  401. !            zetitle = "Edit Display Applications";
  402. !       else if (choice == 2)
  403. !            zetitle = "Edit Printing Applications";
  404. !       if (CURRequest(CursesScreen, zetitle, GlobalOptions, 
  405. !              Responses) == 0) {
  406. !            char tmpstr[512];
  407. !            
  408. !            while (i-- > 0) {
  409. !             rcm = RCMAgetEntry(GlobalRC->commands, i);
  410. !             if (choice == 1)
  411. !              /** Display Applications **/
  412. !              sprintf(tmpstr, "%s,%s,%s", GlobalOptions[i], 
  413. !                  Responses[i], RCMgetPrintcmd(rcm));
  414. !             else
  415. !              /** Print Applications **/
  416. !              sprintf(tmpstr, "%s,%s,%s", GlobalOptions[i], 
  417. !                  RCMgetDisplaycmd(rcm), Responses[i]);
  418. !              
  419. !             RCMAfromLine(GlobalRC->commands, tmpstr);
  420. !            }
  421. !            ChangedDefs = TRUE;
  422. !       }
  423. !       break;
  424. !      case 3:
  425. !       /** Add a new application **/
  426. !       
  427. !       for (i=0; i < MAXRESP; i++)
  428. !            if (Responses[i] != NULL)
  429. !             *(Responses[i]) = '\0';
  430. !       
  431. !       if (CURRequest(CursesScreen, "Add a new Application Type", 
  432. !              OptionNewApp, Responses) == 0) {
  433. !            char tmpstr[512];
  434. !            
  435. !            sprintf(tmpstr, "%s,%s,%s", Responses[0], Responses[1],
  436. !                Responses[2]);
  437. !            RCMAfromLine(GlobalRC->commands, tmpstr);
  438. !            ChangedDefs = TRUE;
  439. !       }
  440. !       break;
  441. !       
  442. !      }  /** End of switch on option type **/
  443.   }
  444.   
  445.   GopherDirObj *
  446.   GDdeleteGS(gd,j) 
  447.       GopherDirObj    *gd;
  448. ***************
  449. *** 1248,1253 ****
  450. --- 1330,1340 ----
  451.              char *prompts[4];
  452.              char *responses[4];
  453.              int i;
  454. +            if (SecureMode) {
  455. +             CursesErrorMsg("Sorry, you're not allowed to do this");
  456. +             break;
  457. +            }
  458.   
  459.              prompts[0]="Hostname";
  460.              prompts[1]="Port";
  461. diff -c gopher+/gopher/gopherrc.c:3.10 gopher+/gopher/gopherrc.c:3.11
  462. *** gopher+/gopher/gopherrc.c:3.10    Tue Aug  3 16:08:25 1993
  463. --- gopher+/gopher/gopherrc.c    Tue Aug  3 16:08:27 1993
  464. ***************
  465. *** 1,7 ****
  466.   /********************************************************************
  467.    * $Author: lindner $
  468. !  * $Revision: 3.10 $
  469. !  * $Date: 1993/07/29 17:23:41 $
  470.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopher/gopherrc.c,v $
  471.    * $State: Exp $
  472.    *
  473. --- 1,7 ----
  474.   /********************************************************************
  475.    * $Author: lindner $
  476. !  * $Revision: 3.11 $
  477. !  * $Date: 1993/08/03 20:00:00 $
  478.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopher/gopherrc.c,v $
  479.    * $State: Exp $
  480.    *
  481. ***************
  482. *** 15,20 ****
  483. --- 15,23 ----
  484.    *********************************************************************
  485.    * Revision History:
  486.    * $Log: gopherrc.c,v $
  487. +  * Revision 3.11  1993/08/03  20:00:00  lindner
  488. +  * Change audio/mulaw to audio/basic for MIME
  489. +  *
  490.    * Revision 3.10  1993/07/29  17:23:41  lindner
  491.    * eliminate non-used variables
  492.    *
  493. ***************
  494. *** 488,494 ****
  495.        sprintf(tmpstr, "Text/plain,%s %%s,%s %%s", PAGER_COMMAND, PRINTER_COMMAND);
  496.        RCMAfromLine(rc->commands, tmpstr);
  497.   
  498. !      sprintf(tmpstr, "Audio/mulaw,%s,", PLAY_COMMAND);
  499.        RCMAfromLine(rc->commands, tmpstr);
  500.   
  501.        sprintf(tmpstr, "Image,%s %%s,%s %%s", IMAGE_COMMAND, PRINTER_COMMAND);
  502. --- 491,497 ----
  503.        sprintf(tmpstr, "Text/plain,%s %%s,%s %%s", PAGER_COMMAND, PRINTER_COMMAND);
  504.        RCMAfromLine(rc->commands, tmpstr);
  505.   
  506. !      sprintf(tmpstr, "Audio/basic,%s,", PLAY_COMMAND);
  507.        RCMAfromLine(rc->commands, tmpstr);
  508.   
  509.        sprintf(tmpstr, "Image,%s %%s,%s %%s", IMAGE_COMMAND, PRINTER_COMMAND);
  510. diff -c gopher+/gopher/ourutils.c:3.17 gopher+/gopher/ourutils.c:3.18
  511. *** gopher+/gopher/ourutils.c:3.17    Tue Aug  3 16:08:28 1993
  512. --- gopher+/gopher/ourutils.c    Tue Aug  3 16:08:28 1993
  513. ***************
  514. *** 1,7 ****
  515.   /********************************************************************
  516.    * $Author: lindner $
  517. !  * $Revision: 3.17 $
  518. !  * $Date: 1993/07/30 17:31:56 $
  519.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopher/ourutils.c,v $
  520.    * $State: Exp $
  521.    *
  522. --- 1,7 ----
  523.   /********************************************************************
  524.    * $Author: lindner $
  525. !  * $Revision: 3.18 $
  526. !  * $Date: 1993/08/03 04:43:59 $
  527.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopher/ourutils.c,v $
  528.    * $State: Exp $
  529.    *
  530. ***************
  531. *** 15,20 ****
  532. --- 15,23 ----
  533.    *********************************************************************
  534.    * Revision History:
  535.    * $Log: ourutils.c,v $
  536. +  * Revision 3.18  1993/08/03  04:43:59  lindner
  537. +  * Fix for VMS unresolved variables
  538. +  *
  539.    * Revision 3.17  1993/07/30  17:31:56  lindner
  540.    * Mods to support AskP:, AskL:
  541.    *
  542. ***************
  543. *** 825,831 ****
  544.   #ifdef VMS
  545.   #include descrip
  546.        int return_status;
  547. !      static $DESCRIPTOR(command_desc,command);
  548.   #endif
  549.   
  550.   
  551. --- 828,834 ----
  552.   #ifdef VMS
  553.   #include descrip
  554.        int return_status;
  555. !      $DESCRIPTOR(command_desc,command);
  556.   #endif
  557.   
  558.   
  559. diff -c gopher+/gopherd/daemon.c:3.5 gopher+/gopherd/daemon.c:3.6
  560. *** gopher+/gopherd/daemon.c:3.5    Tue Aug  3 16:08:30 1993
  561. --- gopher+/gopherd/daemon.c    Tue Aug  3 16:08:30 1993
  562. ***************
  563. *** 1,7 ****
  564.   /********************************************************************
  565.    * $Author: lindner $
  566. !  * $Revision: 3.5 $
  567. !  * $Date: 1993/07/26 20:28:58 $
  568.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopherd/daemon.c,v $
  569.    * $State: Exp $
  570.    *
  571. --- 1,7 ----
  572.   /********************************************************************
  573.    * $Author: lindner $
  574. !  * $Revision: 3.6 $
  575. !  * $Date: 1993/08/03 20:43:22 $
  576.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopherd/daemon.c,v $
  577.    * $State: Exp $
  578.    *
  579. ***************
  580. *** 15,20 ****
  581. --- 15,23 ----
  582.    *********************************************************************
  583.    * Revision History:
  584.    * $Log: daemon.c,v $
  585. +  * Revision 3.6  1993/08/03  20:43:22  lindner
  586. +  * Fix for core dumps on HPUX 8.0
  587. +  *
  588.    * Revision 3.5  1993/07/26  20:28:58  lindner
  589.    * Fixed mode for uopen
  590.    *
  591. ***************
  592. *** 205,211 ****
  593.         */
  594.   
  595.        if (ignsigcld) {
  596. ! #if defined(SIGCLD)
  597.         signal(SIGCLD, SIG_IGN);    /* System V */
  598.   #endif
  599.   
  600. --- 208,214 ----
  601.         */
  602.   
  603.        if (ignsigcld) {
  604. ! #if defined(SIGCLD) 
  605.         signal(SIGCLD, SIG_IGN);    /* System V */
  606.   #endif
  607.   
  608. ***************
  609. *** 215,221 ****
  610.   
  611.              But to insure no zombies do SIGCLD first, then SIGCHLD... **/
  612.   
  613. ! #if defined(SIGCHLD) && !defined(_AUX_SOURCE) && !defined(__svr4__) && !defined(USG) && !defined(SYSV)/** BSDish **/
  614.         if (signal(SIGCHLD, sig_sigchld))
  615.              perror("signal error");
  616.   #endif
  617. --- 218,224 ----
  618.   
  619.              But to insure no zombies do SIGCLD first, then SIGCHLD... **/
  620.   
  621. ! #if defined(SIGCHLD) && !defined(_AUX_SOURCE) && !defined(__svr4__) && !defined(USG) && !defined(SYSV) && !defined(hpux) /** BSDish **/
  622.         if (signal(SIGCHLD, sig_sigchld))
  623.              perror("signal error");
  624.   #endif
  625. diff -c gopher+/gopherd/ext.c:3.4 gopher+/gopherd/ext.c:3.5
  626. *** gopher+/gopherd/ext.c:3.4    Tue Aug  3 16:08:30 1993
  627. --- gopher+/gopherd/ext.c    Tue Aug  3 16:08:31 1993
  628. ***************
  629. *** 1,7 ****
  630.   /********************************************************************
  631.    * $Author: lindner $
  632. !  * $Revision: 3.4 $
  633. !  * $Date: 1993/07/31 00:15:37 $
  634.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopherd/ext.c,v $
  635.    * $State: Exp $
  636.    *
  637. --- 1,7 ----
  638.   /********************************************************************
  639.    * $Author: lindner $
  640. !  * $Revision: 3.5 $
  641. !  * $Date: 1993/08/03 06:03:08 $
  642.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopherd/ext.c,v $
  643.    * $State: Exp $
  644.    *
  645. ***************
  646. *** 15,20 ****
  647. --- 15,23 ----
  648.    *********************************************************************
  649.    * Revision History:
  650.    * $Log: ext.c,v $
  651. +  * Revision 3.5  1993/08/03  06:03:08  lindner
  652. +  * Ignored files are now ignored again
  653. +  *
  654.    * Revision 3.4  1993/07/31  00:15:37  lindner
  655.    * Fixed weird extension problem
  656.    *
  657. ***************
  658. *** 193,199 ****
  659.         if (exttype == EXgetExttype(temp)) {
  660.              int exlen = strlen(EXgetExt(temp));
  661.   
  662. !            if (exlen < extlen && strcasecmp(fileext+extlen-exlen,
  663.                     EXgetExt(temp)) == 0) {
  664.               EXcpy(ext,temp);
  665.               return(TRUE);
  666. --- 196,202 ----
  667.         if (exttype == EXgetExttype(temp)) {
  668.              int exlen = strlen(EXgetExt(temp));
  669.   
  670. !            if (exlen <= extlen && strcasecmp(fileext+extlen-exlen,
  671.                     EXgetExt(temp)) == 0) {
  672.               EXcpy(ext,temp);
  673.               return(TRUE);
  674. diff -c gopher+/gopherd/ftp.c:3.5 gopher+/gopherd/ftp.c:3.8
  675. *** gopher+/gopherd/ftp.c:3.5    Tue Aug  3 16:08:31 1993
  676. --- gopher+/gopherd/ftp.c    Tue Aug  3 16:08:32 1993
  677. ***************
  678. *** 1,7 ****
  679.   /********************************************************************
  680.    * $Author: lindner $
  681. !  * $Revision: 3.5 $
  682. !  * $Date: 1993/07/30 19:21:03 $
  683.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopherd/ftp.c,v $
  684.    * $State: Exp $
  685.    *
  686. --- 1,7 ----
  687.   /********************************************************************
  688.    * $Author: lindner $
  689. !  * $Revision: 3.8 $
  690. !  * $Date: 1993/08/03 20:43:54 $
  691.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopherd/ftp.c,v $
  692.    * $State: Exp $
  693.    *
  694. ***************
  695. *** 15,20 ****
  696. --- 15,29 ----
  697.    *********************************************************************
  698.    * Revision History:
  699.    * $Log: ftp.c,v $
  700. +  * Revision 3.8  1993/08/03  20:43:54  lindner
  701. +  * Fix for sites that have @ -> for symbolic links
  702. +  *
  703. +  * Revision 3.7  1993/08/03  06:40:11  lindner
  704. +  * none
  705. +  *
  706. +  * Revision 3.6  1993/08/03  06:14:12  lindner
  707. +  * Fix for extra slashes
  708. +  *
  709.    * Revision 3.5  1993/07/30  19:21:03  lindner
  710.    * Removed debug stuff, fix for extra slashes
  711.    *
  712. ***************
  713. *** 540,545 ****
  714. --- 549,556 ----
  715.              xLateList(ftptype, host, path, fp);
  716.              break;
  717.         }
  718.         break;
  719.        default:
  720.         Abort("XR:","Shouldn't get here!\n");
  721. ***************
  722. *** 716,741 ****
  723.        
  724.        for (i= 0, gap=0; (gap < kind) && (i < end); gap++)
  725.        {
  726. !       for (;(!isspace(bufptr[i])) && (i < end); i++); /* Skip chars to white */
  727.         
  728. !       if (i >= end) Abort ("PUL","said it was Unix but wasn't");
  729.         
  730. !       for (;isspace(bufptr[i]) && (i < end); i++); /* Skip white to chars */
  731.         
  732.         if (i >= end) Abort ("PUL","said Unix but wasn't");
  733.        }
  734.        
  735. !      dirname = alias = &bufptr[i]; /* Point at supposed start-of-fileIntName */
  736.        
  737. !      if (dirname[strlen(dirname)] == '/')
  738. !       dirname[strlen(dirname)] = '\0';
  739.   
  740.        switch(bufptr[0])
  741.        {
  742.        case 'l': /* Link? Skip to REAL IntName! */
  743.         
  744. !       for (dirname = alias ; (*dirname != '>') && (dirname != NULL); dirname++);
  745. !       if (dirname == NULL) return(-1); /* No real DirName?  Hm.  Oh well */
  746.         
  747.         dirname +=2; /* Skip space following arrow */
  748.         /* Grab fake name (sans arrow) */      
  749. --- 727,759 ----
  750.        
  751.        for (i= 0, gap=0; (gap < kind) && (i < end); gap++)
  752.        {
  753. !       /* Skip chars to white */
  754. !       for (;(!isspace(bufptr[i])) && (i < end); i++);
  755.         
  756. !       if (i >= end) 
  757. !            Abort ("PUL","said it was Unix but wasn't");
  758.         
  759. !       /* Skip white to chars */
  760. !       for (;isspace(bufptr[i]) && (i < end); i++);
  761.         
  762.         if (i >= end) Abort ("PUL","said Unix but wasn't");
  763.        }
  764.        
  765. !      /* Point at supposed start-of-fileIntName */
  766. !      dirname = alias = &bufptr[i]; 
  767.        
  768. !      if (dirname[strlen(dirname)-1] == '/')
  769. !       dirname[strlen(dirname)-1] = '\0';
  770.   
  771.        switch(bufptr[0])
  772.        {
  773.        case 'l': /* Link? Skip to REAL IntName! */
  774.         
  775. !       for (dirname = alias ; (*dirname != '>') && (dirname != NULL);
  776. !            dirname++)
  777. !            ;
  778. !       if (dirname == NULL)
  779. !            return(-1); /* No real DirName?  Hm.  Oh well */
  780.         
  781.         dirname +=2; /* Skip space following arrow */
  782.         /* Grab fake name (sans arrow) */      
  783. ***************
  784. *** 747,752 ****
  785. --- 765,773 ----
  786.         /*Internal name in 'IntName' */
  787.         strcpy(IntName,dirname);
  788.   
  789. +       if (IntName[strlen(IntName)-1] == '@')
  790. +            IntName[strlen(IntName)-1] = '\0';
  791.         /* Tag slash on end */
  792.         sprintf(bufptr, "%s/", IntName);
  793.         
  794. ***************
  795. *** 795,802 ****
  796.        
  797.        IntName = (char *)malloc(BUFSIZ);
  798.        
  799. !      if (strncmp(bufptr, "total", 5) == 0) return (-1);  /* Skip 'total' line */
  800. !      TrimEnd(bufptr); /* Trim whitespaces */
  801.        
  802.        switch (ftptype)
  803.        {
  804. --- 816,826 ----
  805.        
  806.        IntName = (char *)malloc(BUFSIZ);
  807.        
  808. !      /* Skip 'total' line */
  809. !      if (strncmp(bufptr, "total", 5) == 0) return (-1); 
  810. !      /* Trim whitespaces */
  811. !      TrimEnd(bufptr); 
  812.        
  813.        switch (ftptype)
  814.        {
  815. ***************
  816. *** 835,841 ****
  817.   Cleanup()
  818.   {
  819.        unlink(ftptmp);
  820. !      printf("Cleaning up %s\n", ftptmp);
  821.        
  822.        exit(1);
  823.   }
  824. --- 859,865 ----
  825.   Cleanup()
  826.   {
  827.        unlink(ftptmp);
  828. !      Debug("Cleaning up %s\n", ftptmp);
  829.        
  830.        exit(1);
  831.   }
  832. diff -c gopher+/gopherd/gopherd.c:3.26 gopher+/gopherd/gopherd.c:3.27
  833. *** gopher+/gopherd/gopherd.c:3.26    Tue Aug  3 16:08:33 1993
  834. --- gopher+/gopherd/gopherd.c    Tue Aug  3 16:08:33 1993
  835. ***************
  836. *** 1,7 ****
  837.   /********************************************************************
  838.    * $Author: lindner $
  839. !  * $Revision: 3.26 $
  840. !  * $Date: 1993/07/29 20:49:25 $
  841.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopherd/gopherd.c,v $
  842.    * $State: Exp $
  843.    *
  844. --- 1,7 ----
  845.   /********************************************************************
  846.    * $Author: lindner $
  847. !  * $Revision: 3.27 $
  848. !  * $Date: 1993/08/02 17:59:26 $
  849.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/gopherd/gopherd.c,v $
  850.    * $State: Exp $
  851.    *
  852. ***************
  853. *** 15,20 ****
  854. --- 15,23 ----
  855.    *********************************************************************
  856.    * Revision History:
  857.    * $Log: gopherd.c,v $
  858. +  * Revision 3.27  1993/08/02  17:59:26  lindner
  859. +  * Fix for Debug syntax error when using DL
  860. +  *
  861.    * Revision 3.26  1993/07/29  20:49:25  lindner
  862.    * removed dead vars, test for non-existant binary files, Dump_Core thing..
  863.    *
  864. ***************
  865. *** 1331,1337 ****
  866.        dlout = getdesc(NULL,dlpath,filename,0);
  867.        
  868.        Debug("dl: %s", dlpath);
  869. !      Debug(" %s", fileame);
  870.        Debug(" %s\n", dlout);
  871.   
  872.        if (dlout != NULL) {
  873. --- 1334,1340 ----
  874.        dlout = getdesc(NULL,dlpath,filename,0);
  875.        
  876.        Debug("dl: %s", dlpath);
  877. !      Debug(" %s", filename);
  878.        Debug(" %s\n", dlout);
  879.   
  880.        if (dlout != NULL) {
  881. diff -c gopher+/object/compatible.h:3.8 gopher+/object/compatible.h:3.10
  882. *** gopher+/object/compatible.h:3.8    Tue Aug  3 16:08:39 1993
  883. --- gopher+/object/compatible.h    Tue Aug  3 16:08:39 1993
  884. ***************
  885. *** 1,7 ****
  886.   /********************************************************************
  887.    * $Author: lindner $
  888. !  * $Revision: 3.8 $
  889. !  * $Date: 1993/07/27 05:30:29 $
  890.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/object/compatible.h,v $
  891.    * $State: Exp $
  892.    *
  893. --- 1,7 ----
  894.   /********************************************************************
  895.    * $Author: lindner $
  896. !  * $Revision: 3.10 $
  897. !  * $Date: 1993/08/03 20:57:42 $
  898.    * $Source: /export/mudhoney/GopherSrc/CVS/gopher+/object/compatible.h,v $
  899.    * $State: Exp $
  900.    *
  901. ***************
  902. *** 15,20 ****
  903. --- 15,26 ----
  904.    *********************************************************************
  905.    * Revision History:
  906.    * $Log: compatible.h,v $
  907. +  * Revision 3.10  1993/08/03  20:57:42  lindner
  908. +  * Really fix it for hocky pucks
  909. +  *
  910. +  * Revision 3.9  1993/08/03  06:43:48  lindner
  911. +  * Compatibility fix for hpux and seteguid
  912. +  *
  913.    * Revision 3.8  1993/07/27  05:30:29  lindner
  914.    * Mondo Debug overhaul from Mitra
  915.    *
  916. ***************
  917. *** 143,149 ****
  918.   
  919.   
  920.   #define seteuid(x) setresuid(-1,x,-1)
  921. ! #define setguid(x) setresgid(-1,x,-1)  
  922.   
  923.   #endif
  924.   
  925. --- 149,155 ----
  926.   
  927.   
  928.   #define seteuid(x) setresuid(-1,x,-1)
  929. ! #define setegid(x) setresgid(-1,x,-1)  
  930.   
  931.   #endif
  932.   
  933.