limit config visibility to /etc and /var/lib

This commit is contained in:
Serghey Rodin 2018-10-17 22:27:06 +03:00
parent a1b3aa3a84
commit 67a0e8d108

View file

@ -35,6 +35,11 @@ if [ ! -z "$src_file" ]; then
echo "Error: invalid source path $src_file"
exit 2
fi
spath=$(echo "$rpath" |egrep "/etc|/var/lib")
if [ -z "$spath" ]; then
echo "Error: invalid source path $src_file"
exit 2
fi
fi
# Reading conf