mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
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
This commit is contained in:
parent
289041e2cb
commit
8e1887fa1a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339515
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user