From: Harald Hoyer Date: Mon, 23 Aug 2010 09:57:39 +0000 (+0200) Subject: dracut: fixed "Shorten permission checking..." X-Git-Tag: 008~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a325a917dd3052c2b2eaa2465cccbcc46c31564;p=thirdparty%2Fdracut.git dracut: fixed "Shorten permission checking..." --- diff --git a/dracut b/dracut index 3b0848ff1..b1bd3573b 100755 --- 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