Lines 2032-2039
Link Here
|
2032 |
|
2032 |
|
2033 |
# inherit the original permissions off the original |
2033 |
# inherit the original permissions off the original |
2034 |
# file |
2034 |
# file |
|
|
2035 |
|
2036 |
# Check for GNU or BSD stat |
2037 |
if stat 2>&1 | grep coreutils; then |
2038 |
STAT="stat -c '%a'" |
2039 |
else |
2040 |
STAT="stat -f '%Lp'" |
2041 |
fi |
2035 |
|
2042 |
|
2036 |
my_perms="`stat -c '%a' \"$MY_APPDIR/$1/$2\"`" |
2043 |
my_perms="`${STAT} \"$MY_APPDIR/$1/$2\"`" |
2037 |
chmod "$my_perms" "$3/$my_file" |
2044 |
chmod "$my_perms" "$3/$my_file" |
2038 |
|
2045 |
|
2039 |
# make sure these files are never world-writable |
2046 |
# make sure these files are never world-writable |