Hi,
slack 0.25.2-3 contains a fix for a rather nasty problem with the prerm,
where if you happen to have an empty /etc/slack.conf, the prerm would do an
rm -rf /
Here's the diff:
diff -u slack-0.15.2/debian/prerm slack-0.15.2/debian/prerm
--- slack-0.15.2/debian/prerm
+++ slack-0.15.2/debian/prerm
@@ -1,15 +1,19 @@
#!/bin/sh
-# $Id: prerm,v 1.1 2004/10/23 01:21:29 alan Exp $
-# post remove script for the Debian GNU/Linux slack package
set -e
if [ "$1" = "purge" -o "$1" = "remove" ]; then
+ unset CACHE
+ unset STAGE
. /etc/slack.conf
# purge the cache
- rm -rf "$CACHE"/*
+ if [ -n "$CACHE" ]; then
+ rm -rf "$CACHE"/*
+ fi
# remove the stage
- rm -rf "$STAGE"
+ if [ -n "$STAGE" ]; then
+ rm -rf "$STAGE"
+ fi
fi
#DEBHELPER#
diff -u slack-0.15.2/debian/control slack-0.15.2/debian/control
--- slack-0.15.2/debian/control
+++ slack-0.15.2/debian/control
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Andrew Pollock <apollock@debian.org>
Build-Depends: debhelper (>> 5)
-Standards-Version: 3.7.3
+Standards-Version: 3.8.0
Package: slack
Architecture: all
diff -u slack-0.15.2/debian/changelog slack-0.15.2/debian/changelog
--- slack-0.15.2/debian/changelog
+++ slack-0.15.2/debian/changelog
@@ -1,3 +1,10 @@
+slack (0.15.2-3) unstable; urgency=high
+
+ * debian/prerm: handle an empty /etc/slack.conf in a less destructive manner
+ * debian/control: bumped Standards-Version (no changes)
+
+ -- Andrew Pollock <apollock@debian.org> Fri, 01 Aug 2008 13:26:51 -0700
+
slack (0.15.2-2) unstable; urgency=low
* debian/watch: updated for new upstream location
regards
Andrew
Attachment:
signature.asc
Description: Digital signature