diff options
author | carlosg <carlosg> | 2007-09-15 18:30:46 +0000 |
---|---|---|
committer | carlosg <carlosg> | 2007-09-15 18:30:46 +0000 |
commit | 09baeb1247e71079adaf9338671ad964b420ccb2 (patch) | |
tree | 1e9dae2c122e2a956e7d212a75aaf12b580ffa4a /Users | |
parent | 150a4d9dcec2c131da58d5ae3cc250b65371992f (diff) |
2007-09-15 Carlos Garnacho <carlosg@gnome.org>
* Users/Users.pm (add_user): adduser doesn't work as expected in
Slackware, make sure we fallback to useradd for that distro. Spotted
by Markus Kanet <<darkvision@gmx.info>
Diffstat (limited to 'Users')
-rw-r--r-- | Users/Users.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Users/Users.pm b/Users/Users.pm index 7508e5c..1062158 100644 --- a/Users/Users.pm +++ b/Users/Users.pm @@ -577,10 +577,11 @@ sub add_user $home_parents =~ s/\/+[^\/]+\/*$//; &Utils::File::run ("$tool_mkdir -p $home_parents"); - if ($cmd_adduser) + if ($cmd_adduser && + $Utils::Backend::tool{"platform"} !~ /^slackware/) { - # use adduser if available, set empty gecos fields - # and password, they will be filled out later + # use adduser if available and valid (slackware one is b0rk) + # set empty gecos fields and password, they will be filled out later $command = "$cmd_adduser --gecos '' --disabled-password" . " --home \'" . $$user[$HOME] . "\'" . " --gid \'" . $$user[$GID] . "\'" . |