summaryrefslogtreecommitdiff
path: root/usr.sbin/pwd_mkdb
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-10-21 00:48:38 +0000
committerEd Maste <emaste@FreeBSD.org>2018-10-21 00:48:38 +0000
commit8e1887fa1a188fabc579d509b97420ca8e0266a6 (patch)
tree1535c646cb3ba4bd49d5f2e2c12658e24da40f57 /usr.sbin/pwd_mkdb
parent289041e2cb6c87edbdec59e1d01566917efecc2b (diff)
downloadsrc-test2-8e1887fa1a188fabc579d509b97420ca8e0266a6.tar.gz
src-test2-8e1887fa1a188fabc579d509b97420ca8e0266a6.zip
pwd_mkdb: retire -B and -L endianness options
Legacy v3 db support was retired in r333133, and it was v3 support that required the -B and -L options. The options were retained temporarily, but now that stable/12 has branched they can be removed. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=339515
Diffstat (limited to 'usr.sbin/pwd_mkdb')
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.813
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c10
2 files changed, 3 insertions, 20 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.8 b/usr.sbin/pwd_mkdb/pwd_mkdb.8
index f7a18a8e4da5..0a8b0143569c 100644
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.8
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.8
@@ -28,7 +28,7 @@
.\" @(#)pwd_mkdb.8 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
.\"
-.Dd April 30, 2018
+.Dd October 20, 2018
.Dt PWD_MKDB 8
.Os
.Sh NAME
@@ -36,7 +36,7 @@
.Nd "generate the password databases"
.Sh SYNOPSIS
.Nm
-.Op Fl BCiLNp
+.Op Fl CiNp
.Op Fl d Ar directory
.Op Fl s Ar cachesize
.Op Fl u Ar username
@@ -112,15 +112,6 @@ encrypted password and the insecure version has an asterisk (``*'')
The databases are used by the C library password routines (see
.Xr getpwent 3 ) .
.Pp
-The following options affected the generation of legacy entries,
-and are now deprecated.
-.Bl -tag -width flag
-.It Fl B
-Store data in big-endian format.
-.It Fl L
-Store data in little-endian format.
-.El
-.Pp
The
.Nm
utility exits zero on success, non-zero on failure.
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index 13fae9510af8..6297bcb461db 100644
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c
@@ -123,19 +123,11 @@ main(int argc, char *argv[])
makeold = 0;
username = NULL;
oldfp = NULL;
- while ((ch = getopt(argc, argv, "BCLNd:ips:u:v")) != -1)
+ while ((ch = getopt(argc, argv, "CNd:ips:u:v")) != -1)
switch(ch) {
- case 'B': /* big-endian output */
- warnx("endiannes options (-B/-L) are deprecated");
- openinfo.lorder = BIG_ENDIAN;
- break;
case 'C': /* verify only */
Cflag = 1;
break;
- case 'L': /* little-endian output */
- warnx("endiannes options (-B/-L) are deprecated");
- openinfo.lorder = LITTLE_ENDIAN;
- break;
case 'N': /* do not wait for lock */
nblock = LOCK_NB; /* will fail if locked */
break;