summaryrefslogtreecommitdiff
path: root/usr.sbin/user/user.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2004-06-04 18:04:22 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2004-06-04 18:04:22 +0000
commitadaaf93ae3b5f89b9cd991129dbe69b29438efc2 (patch)
tree2a5035590233f6e24bdea30cd101398d530e90ce /usr.sbin/user/user.c
parent3e96914188ad06b654b7595442771dd2736d95fa (diff)
Clear up some confusion: -e is account expiry flag, -f is password
expiry flag. Resolves PR 3792, though not by changing code, but by changing docs, comments and an error message or two. ok jmc@ millert@
Diffstat (limited to 'usr.sbin/user/user.c')
-rw-r--r--usr.sbin/user/user.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/user/user.c b/usr.sbin/user/user.c
index ddc1f3e06e8..2a06f13d976 100644
--- a/usr.sbin/user/user.c
+++ b/usr.sbin/user/user.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: user.c,v 1.59 2004/05/10 18:41:11 otto Exp $ */
+/* $OpenBSD: user.c,v 1.60 2004/06/04 18:04:21 otto Exp $ */
/* $NetBSD: user.c,v 1.69 2003/04/14 17:40:07 agc Exp $ */
/*
@@ -77,8 +77,8 @@ typedef struct user_t {
const char *u_groupv[NGROUPS_MAX]; /* secondary groups */
char *u_shell; /* user's shell */
char *u_basedir; /* base directory for home */
- char *u_expire; /* when password will expire */
- char *u_inactive; /* when account will expire */
+ char *u_expire; /* when account will expire */
+ char *u_inactive; /* when password will expire */
char *u_skeldir; /* directory for startup files */
char *u_class; /* login class */
unsigned int u_rsize; /* size of range array */
@@ -1045,11 +1045,11 @@ adduser(char *login_name, user_t *up)
login_name);
}
if (!scantime(&inactive, up->u_inactive)) {
- warnx("Warning: inactive time `%s' invalid, account expiry off",
+ warnx("Warning: inactive time `%s' invalid, password expiry off",
up->u_inactive);
}
if (!scantime(&expire, up->u_expire)) {
- warnx("Warning: expire time `%s' invalid, password expiry off",
+ warnx("Warning: expire time `%s' invalid, account expiry off",
up->u_expire);
}
if (lstat(home, &st) < 0 && !(up->u_flags & F_MKDIR) &&
@@ -1382,7 +1382,7 @@ moduser(char *login_name, char *newlogin, user_t *up)
}
if (up->u_flags & F_EXPIRE) {
if (!scantime(&pwp->pw_expire, up->u_expire)) {
- warnx("Warning: expire time `%s' invalid, password expiry off",
+ warnx("Warning: expire time `%s' invalid, account expiry off",
up->u_expire);
}
}