[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.49-30-gbd8fd0e

Andreas Beckmann debian at abeckmann.de
Mon Jan 21 17:38:56 UTC 2013


The following commit has been merged in the develop branch:
commit ed76d77c116aad2f39df67d783ed9a19ec5a44c2
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Sun Jan 20 23:11:46 2013 +0100

    pre_remove_50_find_bad_permissions: exceptions for lenny and squeeze
    
    /etc/citadel/netconfigs/7 and friends are the big offenders
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/custom-scripts/scripts/pre_remove_50_find_bad_permissions b/custom-scripts/scripts/pre_remove_50_find_bad_permissions
index 8a2848e..307d2cd 100755
--- a/custom-scripts/scripts/pre_remove_50_find_bad_permissions
+++ b/custom-scripts/scripts/pre_remove_50_find_bad_permissions
@@ -1,6 +1,19 @@
 #!/bin/sh
 set -e
 
+if [ "$PIUPARTS_DISTRIBUTION" = "squeeze" ] || [ "$PIUPARTS_DISTRIBUTION" = "lenny" ]; then
+
+case ${PIUPARTS_OBJECTS%%=*} in
+	bcron-run|capisuite|debbugs|raccess4vbox3|sxid)
+		for file in /etc/citadel/netconfigs/7 /etc/citadel/refcount_adjustments.dat /etc/citadel/citadel.control
+		do
+			test ! -f "$file" || chmod -c o-w "$file"
+		done
+		;;
+esac
+
+fi
+
 # find world writables without sticky bit
 BADPERMS=$(find / -mount ! -type l ! -type c ! -type p ! -type s -perm -o+w ! -perm -1000)
 
diff --git a/debian/changelog b/debian/changelog
index c48d4e8..5a55b88 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,7 @@ piuparts (0.50) UNRELEASED; urgency=low
   * piuparts-report.py:
   * pre_install_exceptions: Handle bootcd-ia64 installation in squeeze.
   * post_distupgrade_exceptions: Handle libdb4.8 removal in wheezy.
+  * pre_remove_50_find_bad_permissions: Add some exceptions.
   * pre_remove_50_find_missing_copyright: Add some exceptions.
 
  -- Andreas Beckmann <debian at abeckmann.de>  Tue, 15 Jan 2013 11:51:43 +0100

-- 
piuparts git repository



More information about the Piuparts-commits mailing list