diff options
author | Ed Maste <emaste@FreeBSD.org> | 2018-10-21 00:48:38 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2018-10-21 00:48:38 +0000 |
commit | 8e1887fa1a188fabc579d509b97420ca8e0266a6 (patch) | |
tree | 1535c646cb3ba4bd49d5f2e2c12658e24da40f57 /usr.sbin/pwd_mkdb | |
parent | 289041e2cb6c87edbdec59e1d01566917efecc2b (diff) | |
download | src-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.8 | 13 | ||||
-rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.c | 10 |
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; |