fixed excessive paranoia; chkpwd used to refuse to run when invoked by root and
authorNathan Bryant <loanshark@uncensored.citadel.org>
Wed, 12 May 1999 03:22:05 +0000 (03:22 +0000)
committerNathan Bryant <loanshark@uncensored.citadel.org>
Wed, 12 May 1999 03:22:05 +0000 (03:22 +0000)
BBSUID != 0

citadel/ChangeLog
citadel/chkpwd.c

index 0ca58c2f1423cd402b0a1b2ede777c58802bbef1..5224394abb6163df7ac982e2f3282e317ffbcc5a 100644 (file)
@@ -1,3 +1,7 @@
+1999-05-11 Nathan Bryant <bryant@cs.usm.maine.edu>
+       * chkpwd.c: fixed excessive paranoia; it used to refuse to run when
+         invoked by root and BBSUID != 0
+
 1999-04-27 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
        * file_ops.c: fixed NDOP to not crash the server if it has trouble
          with a download file
index 3dd3264f210f0b835caf7d052b5e7cca6f9d71c5..76f6c9bb1e5426315417c467bda1e1574eed14a4 100644 (file)
@@ -25,8 +25,9 @@ int main(void)
   char buf[256];
 
   get_config();
+  uid = getuid();
 
-  if ((uid = getuid()) != BBSUID)
+  if (uid != BBSUID && uid)
     {
       pw = getpwuid(uid);
       openlog("chkpwd", LOG_CONS, LOG_AUTH);