mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Only chmod $TMPDIR if it's not /tmp
This is a safety belt to ensure that the /tmp sticky bit stuff doesn't get whacked by accident if someone runs the script outright MFC after: 1 week X-MFC with: r305916 Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
4083793433
commit
a85d4fc7e4
1 changed files with 5 additions and 3 deletions
|
|
@ -36,9 +36,11 @@ if ! sysctl -N security.mac.bsdextended >/dev/null 2>&1; then
|
|||
echo "1..0 # SKIP mac_bsdextended(4) support isn't available"
|
||||
exit 0
|
||||
fi
|
||||
if ! chmod -Rf 0755 $TMPDIR; then
|
||||
echo "1..0 # SKIP failed to chmod $TMPDIR"
|
||||
exit 0
|
||||
if [ "$TMPDIR" != "/tmp" ]; then
|
||||
if ! chmod -Rf 0755 $TMPDIR; then
|
||||
echo "1..0 # SKIP failed to chmod $TMPDIR"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
if ! playground=$(mktemp -d $TMPDIR/tmp.XXXXXXX); then
|
||||
echo "1..0 # SKIP failed to create temporary directory"
|
||||
|
|
|
|||
Loading…
Reference in a new issue