Tags: patch

Here is an updated version of the patch that uses the return status of
getent instead of the command output.

diff -u motion-3.2.11/debian/motion.postinst 
motion-3.2.11/debian/motion.postinst
--- motion-3.2.11/debian/motion.postinst
+++ motion-3.2.11/debian/motion.postinst
@@ -9,7 +9,7 @@
 
 add_group_if_missing() {
     if [ -x /usr/sbin/addgroup ]; then
-        if ! id -g motion >/dev/null 2>&1; then
+        if ! getent group motion >/dev/null; then
                 addgroup --force-badname motion || true
         fi
     fi
diff -u motion-3.2.11/debian/changelog motion-3.2.11/debian/changelog
--- motion-3.2.11/debian/changelog
+++ motion-3.2.11/debian/changelog
@@ -1,3 +1,9 @@
+motion (3.2.11-2build2) lucid; urgency=low
+
+  * Fixed debian/motion.postinst : Really test if group "motion" exists (LP: 
#394755)
+
+ -- Jean-Baptiste Lallement <jeanbaptiste.lallem...@gmail.com>  Sat, 21 Nov 
2009 22:32:34 +0100
+
 motion (3.2.11-2build1) karmic; urgency=low
 
   * No-change rebuild to pick up new ffmpeg shlibs file.

Reply via email to