mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
bug #2481: Check read permissions in downloader.sh
This commit is contained in:
1 parent
bc98a3fa02
commit
682f24bafd
1 file changed
+4
@@ -177,6 +177,10 @@ http://*|https://*)
|
||||
command="curl $curl_args"
|
||||
;;
|
||||
*)
|
||||
if [ ! -r $FROM ]; then
|
||||
echo "Cannot read from $FROM" >&2
|
||||
exit -1
|
||||
fi
|
||||
command="cat $FROM"
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in new issue
Block a user