[Pkg-dspam-misc] Bug#461133: debian/dspam.post{inst, rm}: apply same setgid permissions to /usr/bin/dspamc as with /usr/bin/spam

Michele Angrisano darksun1988 at gmail.com
Wed Jan 16 20:47:03 UTC 2008


Package: dspam
Version: 3.6.8-5.1
Severity: wishlist
Tags: patch
User: Michele Angrisano <micheleangrisano at ubuntu.com>
Usertags: origin-ubuntu hardy ubuntu-patch



*** /tmp/tmpgyc8_8
In Ubuntu, we've applied the attached patch to achieve the following:

    - debian/dspam.post{inst,rm}: apply same setgid permissions to
      /usr/bin/dspamc as with /usr/bin/dspam.

We thought you might be interested in doing the same. 


-- System Information:
Debian Release: lenny/sid
  APT prefers hardy-updates
  APT policy: (500, 'hardy-updates'), (500, 'hardy-security'), (500, 'hardy')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-14-generic (SMP w/1 CPU core)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
diff -u dspam-3.6.8/debian/dspam.postrm dspam-3.6.8/debian/dspam.postrm
--- dspam-3.6.8/debian/dspam.postrm
+++ dspam-3.6.8/debian/dspam.postrm
@@ -6,6 +6,7 @@
     for i in \
       /etc/dspam/dspam.conf \
       /usr/bin/dspam \
+      /usr/bin/dspamc \
       /var/spool/dspam \
       /var/spool/dspam/data \
       /etc/dspam/default.prefs \
diff -u dspam-3.6.8/debian/dspam.postinst dspam-3.6.8/debian/dspam.postinst
--- dspam-3.6.8/debian/dspam.postinst
+++ dspam-3.6.8/debian/dspam.postinst
@@ -25,6 +25,11 @@
       dpkg-statoverride --update --add dspam dspam 2755 /usr/bin/dspam
     fi
 
+    if ! dpkg-statoverride --list /usr/bin/dspamc >/dev/null
+    then
+      dpkg-statoverride --update --add dspam dspam 2755 /usr/bin/dspamc
+    fi
+
     if ! dpkg-statoverride --list /var/spool/dspam >/dev/null
     then
       dpkg-statoverride --update --add dspam dspam 0770 /var/spool/dspam


More information about the Pkg-dspam-misc mailing list