summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw_user.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2000-06-24 13:36:13 +0000
committerache <ache@FreeBSD.org>2000-06-24 13:36:13 +0000
commit659df59b0e36fdcc741f84bef9a6c11908fa5a42 (patch)
treed7f6400bb3c7db6c2e727cf243fdb348cce653d4 /usr.sbin/pw/pw_user.c
parent8b610ecf81f8ff6a92ee64521371a22d5e18e8b4 (diff)
downloadFreeBSD-src-659df59b0e36fdcc741f84bef9a6c11908fa5a42.zip
FreeBSD-src-659df59b0e36fdcc741f84bef9a6c11908fa5a42.tar.gz
Localize ctype too.
Add weekday to showuser expired fields
Diffstat (limited to 'usr.sbin/pw/pw_user.c')
-rw-r--r--usr.sbin/pw/pw_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pw/pw_user.c b/usr.sbin/pw/pw_user.c
index 4429050..bd574c6 100644
--- a/usr.sbin/pw/pw_user.c
+++ b/usr.sbin/pw/pw_user.c
@@ -1146,9 +1146,9 @@ print_user(struct passwd * pwd, int pretty, int v7)
*p = (char) toupper((unsigned char)*p);
}
if (pwd->pw_expire > (time_t)0 && (tptr = localtime(&pwd->pw_expire)) != NULL)
- strftime(acexpire, sizeof acexpire, "%Ef %Y %X", tptr);
+ strftime(acexpire, sizeof acexpire, "%a %Ef %Y %X", tptr);
if (pwd->pw_change > (time_t)0 && (tptr = localtime(&pwd->pw_change)) != NULL)
- strftime(pwexpire, sizeof pwexpire, "%Ef %Y %X", tptr);
+ strftime(pwexpire, sizeof pwexpire, "%a %Ef %Y %X", tptr);
printf("Login Name: %-15s #%-12ld Group: %-15s #%ld\n"
" Full Name: %s\n"
" Home: %-26.26s Class: %s\n"
OpenPOWER on IntegriCloud