summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvorlon <vorlon@alioth.debian.org>2009-03-01 03:19:04 +0000
committervorlon <vorlon@alioth.debian.org>2009-03-01 03:19:04 +0000
commit5ec185d64aa10eeed7f4240965c2f0cd6922ad28 (patch)
tree3ef759fd4200970f979509d9f366c1ff8913a46d
parentff733a02f51b5775cb3902c51e878450002cd5e9 (diff)
downloadsamba-5ec185d64aa10eeed7f4240965c2f0cd6922ad28.tar.gz
When populating the sambashare group, it's not an error if the user
simply doesn't exist; test for this case and let the install continue instead of aborting. LP: #206036. git-svn-id: svn://svn.debian.org/svn/pkg-samba/trunk/samba@2620 fc4039ab-9d04-0410-8cac-899223bdd6b0
-rw-r--r--debian/changelog3
-rw-r--r--debian/samba.postinst3
2 files changed, 5 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index ce2b56d575..682c0cc573 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,9 @@ samba (2:3.3.1-1) UNRELEASED; urgency=low
[ Steve Langasek ]
* Add Vcs-{Browser,Svn} fields to debian/control.
+ * When populating the sambashare group, it's not an error if the user
+ simply doesn't exist; test for this case and let the install continue
+ instead of aborting. LP: #206036.
-- Christian Perrier <bubulle@debian.org> Wed, 25 Feb 2009 17:34:26 +0100
diff --git a/debian/samba.postinst b/debian/samba.postinst
index 08a334c9d0..54c0490314 100644
--- a/debian/samba.postinst
+++ b/debian/samba.postinst
@@ -126,7 +126,8 @@ then
OLDIFS="$IFS"
IFS=","
for USER in `getent group admin | cut -f4 -d:`; do
- adduser "$USER" sambashare
+ adduser "$USER" sambashare \
+ || !getent passwd "$USER" >/dev/null
done
IFS="$OLDIFS"
fi