1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

Restore file permissions fails for volumes with soft links. Fixes #1180.

This commit is contained in:
grossmj 2017-09-21 22:45:17 +08:00
parent d76bcf7078
commit a567b394f3

View File

@ -42,8 +42,8 @@ do
then
while IFS=: read PERMS OWNER GROUP FILE
do
chmod "$PERMS" "$FILE"
chown "${OWNER}:${GROUP}" "$FILE"
[ -L "$FILE" ] || chmod "$PERMS" "$FILE"
chown -h "${OWNER}:${GROUP}" "$FILE"
done < "$i/.gns3_perms"
fi
done