1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

feature #3574: Fix checkresticted arg

This commit is contained in:
Ruben S. Montero 2015-02-23 18:50:02 +01:00
parent ce2c08dd5b
commit 4c9171ae58

View File

@ -85,7 +85,7 @@ fi
COPY_COMMAND="$UTILS_PATH/downloader.sh $DOWNLOADER_ARGS"
if echo "$SRC" | grep -vq '^https\?://'; then
if [ `check_restricted 1` -eq 1 ]; then
if [ `check_restricted $SRC` -eq 1 ]; then
log_error "Not allowed to copy images from $RESTRICTED_DIRS"
error_message "Not allowed to copy image file $SRC"
exit -1