Package: psad
Version: 2.1.3-1.1
Severity: normal
Tags: patch
Usertags: origin-ubuntu hardy
Hi,
We have received a bug report about psad in ubuntu:
https://bugs.launchpad.net/ubuntu/+source/psad/+bug/250088
This could happen if /var/run is mounted as tmpfs.
I have patched it with the attached patch, which I believe could be helpful
for Debian too.
Would the daemon start/stop as well if /var/run/psad is not there?
If not we would have to modify the init file as well.
Cheers,
Cesare
diff -u psad-2.1.3/debian/prerm psad-2.1.3/debian/prerm
--- psad-2.1.3/debian/prerm
+++ psad-2.1.3/debian/prerm
@@ -25,8 +25,10 @@
rm -f /usr/doc/$PACKAGE
fi
- find /var/run/psad/ -type f -exec rm -f {} \;
-
+ if [ -d /var/run/psad/ ]; then
+ find /var/run/psad/ -type f -exec rm -f {} \;
+ fi
+
;;
failed-upgrade)
;;