Package: tiger
Version: 1:3.2.2-7.1

Hi,

This following patch is from Ubuntu.  Described as "clean directories
correctly when purging".

--- tiger-3.2.2.orig/config.in
+++ tiger-3.2.2/config.in
@@ -133,8 +133,14 @@
   # TODO: WORKDIR should be removed on exit if it is located in a temporary
   # directory
   if [ ! -d "$WORKDIR" ] ; then
+          case "$WORKDIR" in
+              /var/run/* | /tmp* | /var/tmp/* )
+                  mkdir -p "$WORKDIR"
+                  ;;
+              *)
           echo "Configured working directory $WORKDIR does not exist" >&2
           exit 1
+         esac
   fi
 
 
@@ -222,10 +228,11 @@
   #
 
   [ -n "$RCFILE" -a -f $RCFILE ] && {
+       tmpf=$(tempfile)
     $GREP -v '^#' $RCFILE |
-    $SED -e 's/^\(.*\)=/export \1; \1=/' > $WORKDIR/rcfile.$$
-    . $WORKDIR/rcfile.$$
-    $RM -f $WORKDIR/rcfile.$$
+    $SED -e 's/^\(.*\)=/export \1; \1=/' > $tmpf
+    . $tmpf
+    $RM -f $tmpf
   }
 
   HOSTNAME=`$GETHOSTNAME`





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to