diff --git a/passwd.spec b/passwd.spec index 529a8af..6b7be6a 100644 --- a/passwd.spec +++ b/passwd.spec @@ -1,12 +1,13 @@ Name: passwd Version: 0.80 -Release: 10 +Release: 11 Summary: An implementation of the password setting/changing utility through PAM and libuser libraries License: BSD or GPL+ URL: https://pagure.io/passwd Source0: https://releases.pagure.org/passwd/passwd-%{version}.autotoolized.tar.bz2 Patch1: fix-incorrect-S-output.patch +Patch2: update-manpage.patch Patch9000: add-sm3-crypt-support.patch BuildRequires:libselinux-devel >= 2.1.6-3 gcc glib2-devel, libuser-devel, pam-devel, libuser >= 0.53-1 @@ -58,6 +59,12 @@ make check %{_mandir}/man1/*.gz %changelog +* Tue Apr 30 2024 liyuzhe - 0.80-11 +- Type:defect +- ID:NA +- SUG:NA +- DESC:update manpage + * Mon Aug 15 2022 xueyamao - 0.80-10 - Type:defect - ID:NA diff --git a/update-manpage.patch b/update-manpage.patch new file mode 100644 index 0000000..036146b --- /dev/null +++ b/update-manpage.patch @@ -0,0 +1,50 @@ +diff --git a/man/passwd.1 b/man/passwd.1 +index 1bc2a6e..9727b88 100644 +--- a/man/passwd.1 ++++ b/man/passwd.1 +@@ -40,7 +40,7 @@ + passwd \- update user's authentication tokens + + .SH SYNOPSIS +-.B passwd [-k] [-l] [-u [-f]] [-d] [-e] [-n mindays] [-x maxdays] [-w warndays] [-i inactivedays] [-S] [--stdin] [username] ++.B passwd [-k] [-l] [-u [-f]] [-d] [-e] [-n mindays] [-x maxdays] [-w warndays] [-i inactivedays] [-S] [--stdin] [-?] [--usage] [username] + .sp 2 + .SH DESCRIPTION + The passwd utility is used to update user's authentication token(s). +@@ -82,7 +82,7 @@ function correctly. + .SH OPTIONS + + .TP +-\fB\-k\fR, \fB\-\-keep\fR ++\fB\-k\fR, \fB\-\-keep\-tokens\fR + The option + .B \-k + is used to indicate that the update should only be for expired +@@ -158,8 +158,8 @@ root only. + This will output a short information about the status of the password + for a given account. The status information consists of 7 fields. The + first field is the user's login name. The second field indicates if the +-user account has a locked password (L), has no password (NP), or has a +-usable password (P). The third field gives the date of the last password ++user account has a locked password (LK), has no password (NP), or has a ++usable password (PS). The third field gives the date of the last password + change. The next four fields are the minimum age, maximum age, warning + period, and inactivity period for the password. These ages are expressed + in days. +@@ -174,6 +174,14 @@ from the real date of the last password change by ±1 day. + .sp + This option is available to root only. + ++.TP ++\fB\-?\fR, \fB\-\-help\fR ++Print a help message and exit. ++ ++.TP ++\fB\-\-usage\fR ++Print a short usage message and exit. ++ + .SH "Remember the following two principles" + + .IP \fBProtect\ your\ password.\fR + + \ No newline at end of file