summaryrefslogtreecommitdiff
path: root/usr.sbin/user/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/user/user.c')
-rw-r--r--usr.sbin/user/user.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/user/user.c b/usr.sbin/user/user.c
index b740fdd24ce..a18e76eb297 100644
--- a/usr.sbin/user/user.c
+++ b/usr.sbin/user/user.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: user.c,v 1.65 2005/08/27 23:12:36 deraadt Exp $ */
+/* $OpenBSD: user.c,v 1.66 2005/12/31 19:20:49 millert Exp $ */
/* $NetBSD: user.c,v 1.69 2003/04/14 17:40:07 agc Exp $ */
/*
@@ -1693,6 +1693,7 @@ useradd(int argc, char **argv)
#ifdef EXTENSIONS
case 'p':
memsave(&u.u_password, optarg, strlen(optarg));
+ memset(optarg, 'X', strlen(optarg));
break;
#endif
#ifdef EXTENSIONS
@@ -1825,6 +1826,7 @@ usermod(int argc, char **argv)
#ifdef EXTENSIONS
case 'p':
memsave(&u.u_password, optarg, strlen(optarg));
+ memset(optarg, 'X', strlen(optarg));
u.u_flags |= F_PASSWORD;
break;
#endif