]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: fixed "Shorten permission checking..."
authorHarald Hoyer <harald@redhat.com>
Mon, 23 Aug 2010 09:57:39 +0000 (11:57 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 23 Aug 2010 09:57:39 +0000 (11:57 +0200)
dracut

diff --git a/dracut b/dracut
index 3b0848ff1d9ecf4a902e5cd535d43d8875acc51e..b1bd3573bfbec52f58c1bf82d9120a5404e95b4a 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -265,7 +265,7 @@ if [[ ! -d "$outdir" ]]; then
 elif [[ ! -w "$outdir" ]]; then
     echo "No permission to write $outdir."
     exit 1
-elif [[ ! -w "$outfile" ]]; then
+elif [[ -f "$outfile" && ! -w "$outfile" ]]; then
     echo "No permission to write $outfile."
     exit 1
 fi