From owner-svn-src-head@freebsd.org Sun Oct 21 00:48:39 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9C6FFFC4F8; Sun, 21 Oct 2018 00:48:39 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 56F69725D7; Sun, 21 Oct 2018 00:48:39 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 46DF625C4D; Sun, 21 Oct 2018 00:48:39 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9L0mdKK039568; Sun, 21 Oct 2018 00:48:39 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9L0mc9h039566; Sun, 21 Oct 2018 00:48:38 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201810210048.w9L0mc9h039566@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Sun, 21 Oct 2018 00:48:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r339515 - head/usr.sbin/pwd_mkdb X-SVN-Group: head X-SVN-Commit-Author: emaste X-SVN-Commit-Paths: head/usr.sbin/pwd_mkdb X-SVN-Commit-Revision: 339515 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Oct 2018 00:48:39 -0000 Author: emaste Date: Sun Oct 21 00:48:38 2018 New Revision: 339515 URL: https://svnweb.freebsd.org/changeset/base/339515 Log: 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 Modified: head/usr.sbin/pwd_mkdb/pwd_mkdb.8 head/usr.sbin/pwd_mkdb/pwd_mkdb.c Modified: head/usr.sbin/pwd_mkdb/pwd_mkdb.8 ============================================================================== --- head/usr.sbin/pwd_mkdb/pwd_mkdb.8 Sun Oct 21 00:43:27 2018 (r339514) +++ head/usr.sbin/pwd_mkdb/pwd_mkdb.8 Sun Oct 21 00:48:38 2018 (r339515) @@ -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 @@ -111,15 +111,6 @@ encrypted password and the insecure version has an ast .Pp 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 Modified: head/usr.sbin/pwd_mkdb/pwd_mkdb.c ============================================================================== --- head/usr.sbin/pwd_mkdb/pwd_mkdb.c Sun Oct 21 00:43:27 2018 (r339514) +++ head/usr.sbin/pwd_mkdb/pwd_mkdb.c Sun Oct 21 00:48:38 2018 (r339515) @@ -123,18 +123,10 @@ 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 */