diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-07-11 21:09:50 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-07-11 21:09:50 +0000 |
commit | b145dd590b9033009a5dc5955a61937fece60522 (patch) | |
tree | a2cca41a69d3a73958f195fc7b81fbb48fe52340 /pw/pw.c | |
parent | 2e3f699c920ed9dfb675e7c721e38c3aad6e712b (diff) | |
download | pw-darwin-b145dd590b9033009a5dc5955a61937fece60522.tar.gz pw-darwin-b145dd590b9033009a5dc5955a61937fece60522.tar.zst pw-darwin-b145dd590b9033009a5dc5955a61937fece60522.zip |
check the gecos format early: at the moment the -c option is parsed
Diffstat (limited to 'pw/pw.c')
-rw-r--r-- | pw/pw.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |