svn commit: r332929 - stable/11/usr.sbin/pwd_mkdb
Ed Maste
emaste at FreeBSD.org
Tue Apr 24 12:17:29 UTC 2018
Author: emaste
Date: Tue Apr 24 12:17:28 2018
New Revision: 332929
URL: https://svnweb.freebsd.org/changeset/base/332929
Log:
pwd_mkdb: add legacy support deprecation notice
MFC r332789: pwd_mkdb: warn that legacy support is deprecated (if specified)
r283981 switched pwd_mkdb to emit only v4 database entries by default,
and introduced a -l (legacy) option emit v3 entries in addition. The
commit message claims that legacy support will be removed in 12.0, so
emit a warning now if it is used.
MFC r332875: pwd_mkdb: add deprecation notice in manpage too
Followon to r332789; as reported on the -current and -stable lists and
in review D15144 the -l option will be removed before FreeBSD 12.0.
Relnotes: Yes
Sponsored by: The FreeBSD Foundation
Modified:
stable/11/usr.sbin/pwd_mkdb/pwd_mkdb.8
stable/11/usr.sbin/pwd_mkdb/pwd_mkdb.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/pwd_mkdb/pwd_mkdb.8
==============================================================================
--- stable/11/usr.sbin/pwd_mkdb/pwd_mkdb.8 Tue Apr 24 10:32:25 2018 (r332928)
+++ stable/11/usr.sbin/pwd_mkdb/pwd_mkdb.8 Tue Apr 24 12:17:28 2018 (r332929)
@@ -28,7 +28,7 @@
.\" @(#)pwd_mkdb.8 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
.\"
-.Dd February 5, 2014
+.Dd April 24, 2018
.Dt PWD_MKDB 8
.Os
.Sh NAME
@@ -129,6 +129,11 @@ which enables generation of legacy format
.Pq v3
entries.
The legacy format entries are endianness dependent.
+The
+.Fl l
+option is deprecated and is not present in
+.Fx 12.0
+and later.
.Pp
The following options may be specified and will affect the
generation of legacy entries.
Modified: stable/11/usr.sbin/pwd_mkdb/pwd_mkdb.c
==============================================================================
--- stable/11/usr.sbin/pwd_mkdb/pwd_mkdb.c Tue Apr 24 10:32:25 2018 (r332928)
+++ stable/11/usr.sbin/pwd_mkdb/pwd_mkdb.c Tue Apr 24 12:17:28 2018 (r332929)
@@ -164,6 +164,8 @@ main(int argc, char *argv[])
if (argc != 1 || (username && (*username == '+' || *username == '-')))
usage();
+ if (lflag)
+ warnx("legacy (v3) database format support is deprecated");
/*
* This could be changed to allow the user to interrupt.
More information about the svn-src-stable
mailing list