summaryrefslogtreecommitdiffstats
path: root/adduser
diff options
context:
space:
mode:
authorMatteo Riondato <matteo@FreeBSD.org>2006-01-22 18:37:51 +0000
committerMatteo Riondato <matteo@FreeBSD.org>2006-01-22 18:37:51 +0000
commit5bbf5be75438fa442e66148490212c18b7537a59 (patch)
treef2b9599b950073ae8a8d0dabde4669379fd9878e /adduser
parent9d69c14abcc027101e21bd211b68a2bd3c1bfab7 (diff)
downloadpw-darwin-5bbf5be75438fa442e66148490212c18b7537a59.tar.gz
pw-darwin-5bbf5be75438fa442e66148490212c18b7537a59.tar.zst
pw-darwin-5bbf5be75438fa442e66148490212c18b7537a59.zip
Honour the "uuid" directive in adduser.conf
PR: conf/87914 Approved by: philip (mentor) MFC after: 3 days
Diffstat (limited to 'adduser')
-rw-r--r--adduser/adduser.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/adduser/adduser.sh b/adduser/adduser.sh
index a8622b9..735d178 100644
--- a/adduser/adduser.sh
+++ b/adduser/adduser.sh
@@ -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=