]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Honour the "uuid" directive in adduser.conf
authorMatteo Riondato <matteo@FreeBSD.org>
Sun, 22 Jan 2006 18:37:51 +0000 (18:37 +0000)
committerMatteo Riondato <matteo@FreeBSD.org>
Sun, 22 Jan 2006 18:37:51 +0000 (18:37 +0000)
PR: conf/87914
Approved by: philip (mentor)
MFC after: 3 days

adduser/adduser.sh

index a8622b93881fb13be346ed5110ffc463da0a8490..735d178c1aefbd8ee78a895ccf369f3d5ec46fb0 100644 (file)
@@ -447,7 +447,10 @@ get_homedir() {
 #      allocates one if it is not specified.
 #
 get_uid() {
-       uuid=${uidstart}
+       if [ -z "$uuid" ]; then
+               uuid=${uidstart}
+       fi
+
        _input=
        _prompt=