Fix Writable temp directories not owned/writeable
authorColin Tuckley <colin@tuckley.org>
Sun, 26 Jul 2009 13:44:17 +0000 (13:44 +0000)
committerColin Tuckley <colin@tuckley.org>
Sun, 26 Jul 2009 13:44:17 +0000 (13:44 +0000)
abcde
debian/changelog

diff --git a/abcde b/abcde
index 32824a1..1d0c446 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -1883,11 +1883,11 @@ do_discid ()
                        exit 1
                fi
                echo -n .
-               # It's a directory, let's see if it's owned by us
-               if [ ! -O "$ABCDETEMPDIR" ]; then
+               # It's a directory, let's see if it's writable by us
+               if [ ! -r "$ABCDETEMPDIR" ] || [ ! -w "$ABCDETEMPDIR" ] || [ ! -x "$ABCDETEMPDIR" ]; then
                        # Nope, complain and exit
                        echo >&2
-                       echo "abcde: directory $ABCDETEMPDIR already exists and is not owned by you." >&2
+                       echo "abcde: directory $ABCDETEMPDIR already exists and is not writeable." >&2
                        echo "Please investigate, remove it, and rerun abcde." >&2
                        exit 1
                fi
index 64269ec..9d3846c 100644 (file)
@@ -4,9 +4,9 @@ abcde (2.3.99.8-1) unstable; urgency=low
   * Correct homepage URL in README (Closes: #526165).
   * Fix typos (Closes: #435605, #435606).
   * Fix misspelling of comma in script and manpage (Closes: #435603).
-  * 
+  * Fix Writable temp directories not owned/writeable (Closes: #143552).
 
- -- Colin Tuckley <colint@debian.org>  Sun, 26 Jul 2009 12:44:17 +0100
+ -- Colin Tuckley <colint@debian.org>  Sun, 26 Jul 2009 14:40:56 +0100
 
 abcde (2.3.99.7-1) unstable; urgency=low