summaryrefslogtreecommitdiffstats
path: root/pw/pw.h
diff options
context:
space:
mode:
authorEugene Grosbein <eugen@FreeBSD.org>2017-12-09 23:34:00 +0000
committerEugene Grosbein <eugen@FreeBSD.org>2017-12-09 23:34:00 +0000
commitec0a208a6ef7a6b67c2f2d3b23c848ed60922da6 (patch)
treee43967eaa08bb604834c72aff77c20fe4dfc5879 /pw/pw.h
parentdfbdc8a51b65827faa66e5f333715d340ed92d0c (diff)
downloadpw-darwin-ec0a208a6ef7a6b67c2f2d3b23c848ed60922da6.tar.gz
pw-darwin-ec0a208a6ef7a6b67c2f2d3b23c848ed60922da6.tar.zst
pw-darwin-ec0a208a6ef7a6b67c2f2d3b23c848ed60922da6.zip
pw(8): correct expiration period handling and command line overrides
to preconfigured values for -e, -p and -w flags. Use non-negative symbols instead of magic values in passwd_val/pw_password functions. PR: 223431 Submitted by: Yuri Pankov (in part, patch for the manual) Reported by: mav (mentor) MFC after: 3 days Relnotes: yes
Diffstat (limited to 'pw/pw.h')
-rw-r--r--pw/pw.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pw/pw.h b/pw/pw.h
index 816c755..fde3ce3 100644
--- a/pw/pw.h
+++ b/pw/pw.h
@@ -48,6 +48,14 @@ enum _mode
M_NUM
};
+enum _passmode
+{
+ P_NO,
+ P_NONE,
+ P_RANDOM,
+ P_YES
+};
+
enum _which
{
W_USER,