dracut: fixed "Shorten permission checking..."

This commit is contained in:
Harald Hoyer 2010-08-23 11:57:39 +02:00
parent 7254c24a76
commit 0a325a917d

2
dracut
View File

@ -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