]> code.citadel.org Git - citadel.git/blobdiff - citadel/chkpwd.c
* Variable names, comments, documentation, etc... removed the acronym 'BBS'
[citadel.git] / citadel / chkpwd.c
index 3dd3264f210f0b835caf7d052b5e7cca6f9d71c5..ece82c2a1129e90d53447f5f11bf31f26a13b3d0 100644 (file)
@@ -1,8 +1,9 @@
 /*
- * chkpwd.c: a setuid helper program for machines which use shadow passwords
+ * $Id$
+ *
+ * a setuid helper program for machines which use shadow passwords
  * by Nathan Bryant, March 1999
  *
- * $Id$
  */
 
 #include <pwd.h>
@@ -22,11 +23,12 @@ int main(void)
 {
   uid_t uid;
   struct passwd *pw;
-  char buf[256];
+  char buf[SIZ];
 
   get_config();
+  uid = getuid();
 
-  if ((uid = getuid()) != BBSUID)
+  if (uid != CTDLUID && uid)
     {
       pw = getpwuid(uid);
       openlog("chkpwd", LOG_CONS, LOG_AUTH);