Package: udev
Severity: serious
Version: 175-6
Tag: patch

udev fails to purge if /etc/udev/rules.d/ is non-existent (which happens
to be the case e.g. in lxc containers and normal chroots too) due to
wrong usage of rmdir in postrm:

-  rmdir --ignore-fail-on-non-empty /etc/udev/rules.d/
+  rmdir --ignore-fail-on-non-empty /etc/udev/rules.d/ || true

bonus points for making it silent:

-  rmdir --ignore-fail-on-non-empty /etc/udev/rules.d/
+  rmdir --ignore-fail-on-non-empty /etc/udev/rules.d/ > /dev/null 2>&1
|| true

Regards,
Daniel

-- 
Address:        Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:          daniel.baum...@progress-technologies.net
Internet:       http://people.progress-technologies.net/~daniel.baumann/


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to