summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2016-03-02 16:14:46 +0000
committerGlen Barber <gjb@FreeBSD.org>2016-03-02 16:14:46 +0000
commit214a734e37c20ad8832b14c3ef6041d85cc44e64 (patch)
tree78f624fa5a810d90ba079c87ee1199ffe4b12f29
parent1ba9a3839ca471ffe0015f9c4a192ae123aef470 (diff)
parent569b82607b8f879fbb76b62bba9af20a310a7cc1 (diff)
downloadpw-darwin-214a734e37c20ad8832b14c3ef6041d85cc44e64.tar.gz
pw-darwin-214a734e37c20ad8832b14c3ef6041d85cc44e64.tar.zst
pw-darwin-214a734e37c20ad8832b14c3ef6041d85cc44e64.zip
MFH
Sponsored by: The FreeBSD Foundation
-rw-r--r--pw/pw_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pw/pw_user.c b/pw/pw_user.c
index 30a2749..2f87b56 100644
--- a/pw/pw_user.c
+++ b/pw/pw_user.c
@@ -1654,7 +1654,7 @@ pw_user_mod(int argc, char **argv, char *arg1)
}
}
- if (id > 0 && pwd->pw_uid != id) {
+ if (id >= 0 && pwd->pw_uid != id) {
pwd->pw_uid = id;
edited = true;
if (pwd->pw_uid != 0 && strcmp(pwd->pw_name, "root") == 0)