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 | 13824e6c6765b7a1d67b0ffaab60aa0612bee252 (patch) | |
| tree | 03447f40cef8276ed48162e5726f971236c93fad /pw/pw.c | |
| parent | b1134e75ce7b8f0deb1b1880f35c42f2a09ddb4e (diff) | |
| download | pw-darwin-13824e6c6765b7a1d67b0ffaab60aa0612bee252.tar.gz pw-darwin-13824e6c6765b7a1d67b0ffaab60aa0612bee252.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); |
