summaryrefslogtreecommitdiffstats
path: root/usr.sbin/adduser
diff options
context:
space:
mode:
authormatteo <matteo@FreeBSD.org>2006-01-22 18:37:51 +0000
committermatteo <matteo@FreeBSD.org>2006-01-22 18:37:51 +0000
commit4cb2c843478de47c5cdc1a861c8358dfd7964c1a (patch)
treeaad8d9a3f9358883185feb96d4887632acef33ec /usr.sbin/adduser
parentc7ef8009e09c8a6d5943d571e68489bc1a01d80d (diff)
downloadFreeBSD-src-4cb2c843478de47c5cdc1a861c8358dfd7964c1a.zip
FreeBSD-src-4cb2c843478de47c5cdc1a861c8358dfd7964c1a.tar.gz
Honour the "uuid" directive in adduser.conf
PR: conf/87914 Approved by: philip (mentor) MFC after: 3 days
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r--usr.sbin/adduser/adduser.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/adduser/adduser.sh b/usr.sbin/adduser/adduser.sh
index a8622b9..735d178 100644
--- a/usr.sbin/adduser/adduser.sh
+++ b/usr.sbin/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=
OpenPOWER on IntegriCloud