[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[abcde] Bug#143552: abcde: unowned temp directories, another patch143552@bugs.debian.org



Package: abcde
Version: 2.0.3-1
Followup-For: Bug #143552

I had the exact same problem, and wrote my own patch. Basically the same
but I check for rwx not just w. (maybe that's unnecessary?)


--- abcde	2002-01-27 22:44:02.000000000 -0700
+++ /usr/bin/abcde	2002-12-12 12:25:15.000000000 -0700
@@ -434,11 +434,11 @@
 			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 we have permissions to it
+		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 you don't have read, write, and execute permissions on it." >&2
 			echo "Please investigate, remove it, and rerun abcde." >&2
 			exit 1
 		fi

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux falcon 2.4.19 #2 Sat Dec 7 19:14:11 MST 2002 i586
Locale: LANG=C, LC_CTYPE=C

Versions of packages abcde depends on:
ii  cd-discid                 0.7-1          CDDB DiscID utility
ii  cdda2wav                  4:1.10+11a34-1 Creates WAV files from audio CDs
ii  cdparanoia                3a9.8-7        An audio extraction tool for sampl
ii  vorbis-tools              1.0rc3-1       Several Ogg Vorbis Tools
ii  wget                      1.8.2-5        retrieves files from the web


To unsubscribe: echo unsubscribe | mail abcde-request@whimsica.lly.org