[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Please unblock debsecan 0.4.7



Compared to the version in testing, debsecan 0.4.7 offers translation
updates and the following bug fix.

TIA,
Florian

Fri Mar  2 22:00:56 CET 2007  Florian Weimer <fw@deneb.enyo.de>
  * Migrate /var/lib/debsecan away from root permissions unconditionally.

diff -rN -u old-debian/debian/debsecan.postinst new-debian/debian/debsecan.postinst
--- old-debian/debian/debsecan.postinst 2007-03-15 13:48:46.000000000 +0100
+++ new-debian/debian/debsecan.postinst 2007-03-15 13:48:46.000000000 +0100
@@ -6,10 +6,15 @@

 case "$1" in
     configure)
-       # fix permissions on upgrade, will also run for fresh
-       # installations.
+       # If the directory is owned by root, change ownership.  This
+       # happens for fresh installations, and re-installations after
+       # removal (and purge, of course).
+       find /var/lib/debsecan -maxdepth 0 -user root | while read dir ; do
+           chown daemon:daemon "$dir"
+       done
+
+        # Fix permissions on upgrade from ancient versions.
        if dpkg --compare-versions "$2" '<' "0.2.1" ; then
-           chown daemon:daemon /var/lib/debsecan
            if test -e /var/lib/debsecan/history ; then
                chown daemon:daemon /var/lib/debsecan/history
            fi



Reply to: