diff options
| author | Mark Murray <markm@FreeBSD.org> | 1997-09-28 08:57:24 +0000 |
|---|---|---|
| committer | Mark Murray <markm@FreeBSD.org> | 1997-09-28 08:57:24 +0000 |
| commit | 7f80a020808cbee4f6fae0a3b01e85b5b9e317ee (patch) | |
| tree | 3b827e7e3b74604affc98a33edc81ffdd81fc47d /usr.bin/login/login_fbtab.c | |
| parent | f714a88adcc16bcb0941a5be8eb15974b37ac788 (diff) | |
Notes
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 37cfe7a8e2bb..488b3f3e9ea9 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 */ |
