summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pwd_mkdb/pwd_mkdb.c
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-12-02 16:39:15 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-12-02 16:39:15 +0000
commit8d21f19e4ea884b8f28e4feb635e0e5617096a14 (patch)
tree83232d6f4c25b8cc5173adbfa3341f49e4ae58e8 /usr.sbin/pwd_mkdb/pwd_mkdb.c
parent3f39219a8d9387cceebfd86d69f447cdc5604478 (diff)
downloadFreeBSD-src-8d21f19e4ea884b8f28e4feb635e0e5617096a14.zip
FreeBSD-src-8d21f19e4ea884b8f28e4feb635e0e5617096a14.tar.gz
Replace the -q option to pwd_mkdb with a test for PW_SCAN_BIG_IDS in
the environment. This allows big ID warnings to be suppressed for vipw and chpass as well. Since the environment variable test is only performed for callers of pw_scan() that do not set pw_big_ids_warning, the test can still be overriden. Currently, chpass and pwd_mkdb are the only users of pw_scan() and neither of them overrides the environment variable test.
Diffstat (limited to 'usr.sbin/pwd_mkdb/pwd_mkdb.c')
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index ef57dc2..5ee9699 100644
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c
@@ -115,7 +115,7 @@ main(argc, argv)
strcpy(prefix, _PATH_PWD);
makeold = 0;
username = NULL;
- while ((ch = getopt(argc, argv, "Cd:pqs:u:vN")) != -1)
+ while ((ch = getopt(argc, argv, "Cd:ps:u:vN")) != -1)
switch(ch) {
case 'C': /* verify only */
Cflag = 1;
@@ -126,9 +126,6 @@ main(argc, argv)
case 'p': /* create V7 "file.orig" */
makeold = 1;
break;
- case 'q':
- pw_big_ids_warning = 0;
- break;
case 's': /* change default cachesize */
openinfo.cachesize = atoi(optarg) * 1024 * 1024;
break;
OpenPOWER on IntegriCloud