From cc8565d1c5634a6a893afb9125335e2a5ecaa4d3 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 6 Sep 1999 17:30:03 +0000 Subject: Unifdef -DPASSWD_IGNORE_COMMENTS. This wasn't really optional and we have enough pseudo-options already. --- usr.sbin/pwd_mkdb/Makefile | 1 - usr.sbin/pwd_mkdb/pwd_mkdb.c | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/pwd_mkdb/Makefile b/usr.sbin/pwd_mkdb/Makefile index 25d001e..86116fec 100644 --- a/usr.sbin/pwd_mkdb/Makefile +++ b/usr.sbin/pwd_mkdb/Makefile @@ -3,6 +3,5 @@ PROG= pwd_mkdb SRCS= pw_scan.c pwd_mkdb.c MAN8= pwd_mkdb.8 -CFLAGS+= -DPASSWD_IGNORE_COMMENTS .include diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c index 644ef08..5ee9699 100644 --- a/usr.sbin/pwd_mkdb/pwd_mkdb.c +++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c @@ -311,11 +311,9 @@ main(argc, argv) if (!is_comment && (pwd.pw_name[0] == '+' || pwd.pw_name[0] == '-')) yp_enabled = 1; + if (is_comment) + --cnt; #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. */ @@ -510,7 +508,6 @@ scan(fp, pw) } *p = '\0'; -#ifdef PASSWD_IGNORE_COMMENTS /* * Ignore comments: ^[ \t]*# */ @@ -522,7 +519,6 @@ scan(fp, pw) return(1); } else is_comment = 0; -#endif if (!pw_scan(line, pw)) { warnx("at line #%d", lcnt); -- cgit v1.1