[system-tools-backends-clone] Bug 590239 - Fix distro detection in users to use proper variant of useradd
- From: Milan Bouchet-Valat <milanbv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [system-tools-backends-clone] Bug 590239 - Fix distro detection in users to use proper variant of useradd
- Date: Tue, 18 Aug 2009 23:01:35 +0000 (UTC)
commit a76bb71d19b11d151c099e2fb6a6a677817d5a2a
Author: Jeremy Guitton <debotux free fr>
Date: Wed Aug 19 01:00:20 2009 +0200
Bug 590239 - Fix distro detection in users to use proper variant of useradd
Used by Gentoo for a long time.
Users/Users.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/Users/Users.pm b/Users/Users.pm
index 6703d0f..bd0603a 100644
--- a/Users/Users.pm
+++ b/Users/Users.pm
@@ -591,7 +591,8 @@ sub add_user
if ($cmd_adduser &&
$Utils::Backend::tool{"platform"} !~ /^slackware/ &&
$Utils::Backend::tool{"platform"} !~ /^archlinux/ &&
- $Utils::Backend::tool{"platform"} !~ /^redhat/)
+ $Utils::Backend::tool{"platform"} !~ /^redhat/ &&
+ $Utils::Backend::tool{"platform"} !~ /^gentoo/)
{
# use adduser if available and valid (slackware one is b0rk)
# set empty gecos fields and password, they will be filled out later
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]