From 97303f37f81110cfa6c7a9a4a723398d547ce78f Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 19 Apr 2018 20:25:19 +0000 Subject: [PATCH] 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. --- usr.sbin/pwd_mkdb/pwd_mkdb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c index 7f6affb1f840..f62b898259d0 100644 --- a/usr.sbin/pwd_mkdb/pwd_mkdb.c +++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c @@ -166,6 +166,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.