diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2012-11-27 18:38:50 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2012-11-27 18:38:50 +0000 |
| commit | e2de0ef2320297eedb034a92c2f3c7915442cea5 (patch) | |
| tree | 142724dc5d76574292606b37665d2df0e3d60ef8 /pw/pw_user.c | |
| parent | 7fd08970d958b3ee79fed4dcef38a80c9a0653c1 (diff) | |
| parent | 9c0cbb83460f1161374ff312897e5212fcf1dd78 (diff) | |
| download | pw-darwin-e2de0ef2320297eedb034a92c2f3c7915442cea5.tar.gz pw-darwin-e2de0ef2320297eedb034a92c2f3c7915442cea5.zip | |
MFC @ r241285
Diffstat (limited to 'pw/pw_user.c')
| -rw-r--r-- | pw/pw_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c index b59789c..1b72cbd 100644 --- a/pw/pw_user.c +++ b/pw/pw_user.c @@ -315,7 +315,7 @@ pw_user(struct userconf * cnf, int mode, struct cargs * args) */ if (mode != M_ADD && pwd == NULL && strspn(a_name->val, "0123456789") == strlen(a_name->val) - && atoi(a_name->val) > 0) { /* Assume uid */ + && *a_name->val) { (a_uid = a_name)->ch = 'u'; a_name = NULL; } |
