home *** CD-ROM | disk | FTP | other *** search
/ The UNIX CD Bookshelf / OREILLY_TUCB_UNIX_CD.iso / upt / examples / SOURCES / SCREEN / RTR / SCREEN. next >
Encoding:
Text File  |  1998-07-24  |  2.5 KB  |  82 lines

  1. --- attacher.c.orig    Mon Jul  1 05:59:32 1996
  2. +++ attacher.c    Tue Feb 11 08:42:51 1997
  3. @@ -799,7 +799,7 @@
  4.        debug3("getpass(%d): %x == %s\n", errno, (unsigned int)cp1, cp1);
  5.        if (pass)
  6.          {
  7. -          if (!strncmp(crypt(cp1, pass), pass, strlen(pass)))
  8. +          if (!strncmp(cp1, pass, strlen(pass)))
  9.              break;
  10.          }
  11.        else
  12. --- config.h.in.orig    Sun Sep  1 17:54:24 1996
  13. +++ config.h.in    Tue Feb 11 08:42:51 1997
  14. @@ -112,7 +112,7 @@
  15.  #undef SIMPLESCREEN
  16.  #ifndef SIMPLESCREEN
  17.  # define LOCK
  18. -# define PASSWORD
  19. +# undef PASSWORD
  20.  # define COPY_PASTE
  21.  # define REMOTE_DETACH
  22.  # define POW_DETACH
  23. @@ -461,6 +461,8 @@
  24.   * #define PTYRANGE0 "pqrstuvwxyzPQRST" 
  25.   * is recommended by Dan Jacobson.
  26.   */
  27. +#ifndef PTYRANGE0
  28.  #undef PTYRANGE0
  29. +#endif
  30.  #undef PTYRANGE1
  31.  
  32. --- osdef.h.in.orig    Wed Apr 17 18:12:34 1996
  33. +++ osdef.h.in    Tue Feb 11 08:42:51 1997
  34. @@ -84,7 +84,7 @@
  35.  extern int   setegid __P((int));
  36.  #endif
  37.  
  38. -extern char *crypt __P((char *, char *));
  39. +/* extern char *crypt __P((char *, char *)); */
  40.  extern int   putenv __P((char *));
  41.  
  42.  extern int   tgetent __P((char *, char *));
  43. --- process.c.orig    Mon Jul  1 05:54:32 1996
  44. +++ process.c    Tue Feb 11 08:42:51 1997
  45. @@ -3690,7 +3690,7 @@
  46.      }
  47.    for (st = 0; st < 2; st++)
  48.      salt[st] = 'A' + (int)((time(0) >> 6 * st) % 26);
  49. -  strncpy(Password, crypt(Password, salt), sizeof(Password) - 1);
  50. +  strncpy(Password, Password, sizeof(Password) - 1);
  51.    if (CheckPassword)
  52.      {
  53.  #ifdef COPY_PASTE
  54. --- socket.c.orig    Mon Jul  1 07:58:58 1996
  55. +++ socket.c    Tue Feb 11 08:42:51 1997
  56. @@ -695,7 +695,7 @@
  57.  char *pwd, *utty;
  58.  {
  59.    if (CheckPassword && *Password &&
  60. -      strncmp(crypt(pwd, (strlen(Password) > 1) ? Password : "JW"), Password, strlen(Password)))
  61. +      strncmp(pwd ? Password : "JW"), Password, strlen(Password)))
  62.      {
  63.        if (*pwd)
  64.      {
  65. --- Makefile.in.orig    Sun Sep  1 17:54:24 1996
  66. +++ Makefile.in    Tue Feb 11 09:20:45 1997
  67. @@ -70,12 +70,8 @@
  68.      $(CC) -c -I. -I$(srcdir) $(M_CFLAGS) $(DEFS) $(OPTIONS) $(CFLAGS) $<
  69.  
  70.  install_bin: screen
  71. -    $(INSTALL_PROGRAM) screen $(bindir)/screen-$(VERSION)
  72. -    -chown root $(bindir)/screen-$(VERSION) && chmod 4755 $(bindir)/screen-$(VERSION)
  73. -# This doesn't work if $(bindir)/screen is a symlink
  74. -    -if [ -f $(bindir)/screen ] && [ ! -f $(bindir)/screen.old ]; then mv $(bindir)/screen $(bindir)/screen.old; fi
  75. -    rm -f $(bindir)/screen
  76. -    ln -s screen-$(VERSION) $(bindir)/screen
  77. +    $(INSTALL_PROGRAM) screen $(bindir)/screen
  78. +    -chown root $(bindir)/screen && chmod 4755 $(bindir)/screen
  79.  
  80.  install: installdirs install_bin
  81.      cd doc ; $(MAKE) install
  82.