cvs commit: apachen/src/support htdigest.c htpasswd.c

1998-01-21 Thread dgaudet
dgaudet 98/01/21 14:05:46

  Modified:src  CHANGES
   src/support htdigest.c htpasswd.c
  Log:
  Tweaks to use "copy" instead of "cp" under win32 and os2.
  
  PR:   1482
  Submitted by: Brian Havard
  
  Revision  ChangesPath
  1.576 +3 -0  apachen/src/CHANGES
  
  Index: CHANGES
  ===
  RCS file: /export/home/cvs/apachen/src/CHANGES,v
  retrieving revision 1.575
  retrieving revision 1.576
  diff -u -r1.575 -r1.576
  --- CHANGES   1998/01/21 21:59:27 1.575
  +++ CHANGES   1998/01/21 22:05:43 1.576
  @@ -1,5 +1,8 @@
   Changes with Apache 1.3b4
   
  +  *) htdigest and htpasswd needed slight tweaks to work on OS/2 and WIN32.
  + [Brian Havard]
  +
 *) The NeXT cc (which is gcc hacked up) doesn't appear to support some
gcc functionality.  Work around it.
[Keith Severson <[EMAIL PROTECTED]>] PR#1613
  
  
  
  1.14  +4 -0  apachen/src/support/htdigest.c
  
  Index: htdigest.c
  ===
  RCS file: /export/home/cvs/apachen/src/support/htdigest.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- htdigest.c1998/01/20 01:55:25 1.13
  +++ htdigest.c1998/01/21 22:05:45 1.14
  @@ -200,7 +200,11 @@
   }
   fclose(f);
   fclose(tfp);
  +#if defined(__EMX__) || defined(WIN32)
  +sprintf(command, "copy \"%s\" \"%s\"", tn, argv[1]);
  +#else
   sprintf(command, "cp %s %s", tn, argv[1]);
  +#endif
   system(command);
   unlink(tn);
   exit(0);
  
  
  
  1.10  +4 -0  apachen/src/support/htpasswd.c
  
  Index: htpasswd.c
  ===
  RCS file: /export/home/cvs/apachen/src/support/htpasswd.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- htpasswd.c1998/01/20 01:55:25 1.9
  +++ htpasswd.c1998/01/21 22:05:45 1.10
  @@ -215,7 +215,11 @@
   }
   fclose(f);
   fclose(tfp);
  +#if defined(__EMX__) || defined(WIN32)
  +sprintf(command, "copy \"%s\" \"%s\"", tn, argv[1]);
  +#else
   sprintf(command, "cp %s %s", tn, argv[1]);
  +#endif
   system(command);
   unlink(tn);
   exit(0);
  
  
  


cvs commit: apachen/src/support htdigest.c htpasswd.c

1998-01-20 Thread dgaudet
dgaudet 98/01/19 17:55:26

  Modified:src/support htdigest.c htpasswd.c
  Log:
  Note these two aren't setuid safe.
  
  Revision  ChangesPath
  1.13  +6 -0  apachen/src/support/htdigest.c
  
  Index: htdigest.c
  ===
  RCS file: /export/home/cvs/apachen/src/support/htdigest.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- htdigest.c1997/10/12 06:00:47 1.12
  +++ htdigest.c1998/01/20 01:55:25 1.13
  @@ -1,3 +1,9 @@
  
+/**
  + 
**
  + * NOTE! This program is not safe as a setuid executable!  Do not make it
  + * setuid!
  + 
**
  + 
*/
   /*
* htdigest.c: simple program for manipulating digest passwd file for Apache
*
  
  
  
  1.9   +6 -0  apachen/src/support/htpasswd.c
  
  Index: htpasswd.c
  ===
  RCS file: /export/home/cvs/apachen/src/support/htpasswd.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- htpasswd.c1997/10/12 06:00:47 1.8
  +++ htpasswd.c1998/01/20 01:55:25 1.9
  @@ -1,3 +1,9 @@
  
+/**
  + 
**
  + * NOTE! This program is not safe as a setuid executable!  Do not make it
  + * setuid!
  + 
**
  + 
*/
   /*
* htpasswd.c: simple program for manipulating password file for NCSA httpd
*