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

Bug#418918: ifplugd.rules executable



# Bcc: control
tags 418918 + patch
thanks

On 08/02/10 19:29 +0530, Y Giridhar Appaji Nag said ...
> The file is being installed with -m 644 since 0.28-2.1 but changes were
> not made to postinst.  I am updating the package and will include a fix
> for this.

Doing this in the preinst file, on upgrade.  Does this look OK?

$ svn diff debian/ifplugd.preinst
Index: debian/ifplugd.preinst
===================================================================
--- debian/ifplugd.preinst      (revision 7805)
+++ debian/ifplugd.preinst      (working copy)
@@ -23,6 +23,10 @@
                mv /etc/apm/script.d/ifplugd /etc/apm/script.d/ifplugd.dpkg-old
            fi
 
+           # change permissions of the old /etc/udev/ifplugd.rules
+           if [ -f /etc/udev/ifplugd.rules ] ; then
+               chmod 644 /etc/udev/ifplugd.rules
+           fi
        ;;
 # install|abort-upgrade)

-- 
Y Giridhar Appaji Nag | http://www.appaji.net/

Attachment: signature.asc
Description: Digital signature


Reply to: