summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/pw.c
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-07-11 21:09:50 +0000
committerbapt <bapt@FreeBSD.org>2015-07-11 21:09:50 +0000
commit394857c344323f2f4f816462009badf094ce9b31 (patch)
tree7e85f4297e1c23fed136550b2dade767993f46f4 /usr.sbin/pw/pw.c
parent5e85f1c8a905c7049e28fad2721be1bdd20eca58 (diff)
downloadFreeBSD-src-394857c344323f2f4f816462009badf094ce9b31.zip
FreeBSD-src-394857c344323f2f4f816462009badf094ce9b31.tar.gz
check the gecos format early: at the moment the -c option is parsed
Diffstat (limited to 'usr.sbin/pw/pw.c')
-rw-r--r--usr.sbin/pw/pw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/pw/pw.c b/usr.sbin/pw/pw.c
index 112b1f0..3d4fcf2 100644
--- a/usr.sbin/pw/pw.c
+++ b/usr.sbin/pw/pw.c
@@ -254,6 +254,9 @@ main(int argc, char *argv[])
case 'a':
conf.all = true;
break;
+ case 'c':
+ conf.gecos = pw_checkname(optarg, 1);
+ break;
case 'g':
if (which == 0) { /* for user* */
addarg(&arglist, 'g', optarg);
OpenPOWER on IntegriCloud