summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pwd_mkdb/pwd_mkdb.c
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-11-15 16:45:37 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-11-15 16:45:37 +0000
commitc973e062a1f6aeb029f3a0f13c59e48f0984c8f9 (patch)
tree3668680eeb15e1cb1e29b40b87155e3efebda0e7 /usr.sbin/pwd_mkdb/pwd_mkdb.c
parentf2208af484555e6923ed0044b8df4ed291c49bc7 (diff)
downloadFreeBSD-src-c973e062a1f6aeb029f3a0f13c59e48f0984c8f9.zip
FreeBSD-src-c973e062a1f6aeb029f3a0f13c59e48f0984c8f9.tar.gz
Add to pwd_mkdb a -q option to silence warnings about large IDs. Add a
suitably ominous warning in the manual page. The diff applied is not the one provided in the attributed PR. PR: 13344 Reviewed by: bde
Diffstat (limited to 'usr.sbin/pwd_mkdb/pwd_mkdb.c')
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index 5ee9699..ef57dc2 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:ps:u:vN")) != -1)
+ while ((ch = getopt(argc, argv, "Cd:pqs:u:vN")) != -1)
switch(ch) {
case 'C': /* verify only */
Cflag = 1;
@@ -126,6 +126,9 @@ 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