diff options
author | markm <markm@FreeBSD.org> | 1997-09-28 08:57:24 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1997-09-28 08:57:24 +0000 |
commit | 991f2e7747012b7a3ac9aaefb97e4ccbb4125789 (patch) | |
tree | 544fbda0330e990e150c4b3c6b3277caf457742f /usr.bin/login/login_fbtab.c | |
parent | 9a65690bbfef5ffb763f038713e5be5aee18fe55 (diff) | |
download | FreeBSD-src-991f2e7747012b7a3ac9aaefb97e4ccbb4125789.zip FreeBSD-src-991f2e7747012b7a3ac9aaefb97e4ccbb4125789.tar.gz |
Changes for KTH KerberosIV.
Also quieten -Wall a bit.
Diffstat (limited to 'usr.bin/login/login_fbtab.c')
-rw-r--r-- | usr.bin/login/login_fbtab.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/login/login_fbtab.c b/usr.bin/login/login_fbtab.c index 37cfe7a..488b3f3 100644 --- a/usr.bin/login/login_fbtab.c +++ b/usr.bin/login/login_fbtab.c @@ -59,11 +59,13 @@ */ #include <sys/types.h> +#include <sys/stat.h> #include <stdio.h> #include <syslog.h> #include <string.h> #include <errno.h> #include <dirent.h> +#include <unistd.h> #include "pathnames.h" void login_protect __P((char *, char *, int, uid_t, gid_t)); @@ -91,7 +93,7 @@ gid_t gid; return; while (fgets(buf, sizeof(buf), fp)) { - if (cp = strchr(buf, '#')) + if ((cp = strchr(buf, '#'))) *cp = 0; /* strip comment */ if ((cp = devname = strtok(buf, WSPACE)) == 0) continue; /* empty or comment */ |