diff options
| author | Foxfair Hu <foxfair@FreeBSD.org> | 1998-12-12 16:08:41 +0000 |
|---|---|---|
| committer | Foxfair Hu <foxfair@FreeBSD.org> | 1998-12-12 16:08:41 +0000 |
| commit | 17b09acac98ff105853644f2c458364c28a4913d (patch) | |
| tree | 55f9bf722dfa8e84212d551cc2c95a619d0e1017 | |
| parent | da3ff613903064d5dcbab205c3964afbe33d5989 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c index 3b73d8a4fdf2..9df66802c29b 100644 --- a/usr.sbin/pwd_mkdb/pwd_mkdb.c +++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94"; #endif static const char rcsid[] = - "$Id: pwd_mkdb.c,v 1.26 1998/06/09 20:19:59 ache Exp $"; + "$Id: pwd_mkdb.c,v 1.27 1998/09/29 20:01:21 dt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -287,6 +287,10 @@ main(argc, argv) (pwd.pw_name[0] == '+' || pwd.pw_name[0] == '-')) yp_enabled = 1; #define COMPACT(e) t = e; while ((*p++ = *t++)); +#ifdef PASSWD_IGNORE_COMMENTS + if(is_comment) + --cnt; +#endif if (!is_comment && (!username || (strcmp(username, pwd.pw_name) == 0))) { /* Create insecure data. */ |
