mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make sure $TMPDIR is created with 0755 permissions
This is required to ensure that the temporary script can be executed, as the default mode is apparently too restrictive MFC after: 3 days Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
efe00fd923
commit
9cd2207265
1 changed files with 4 additions and 0 deletions
|
|
@ -36,6 +36,10 @@ 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
|
||||
fi
|
||||
if ! playground=$(mktemp -d $TMPDIR/tmp.XXXXXXX); then
|
||||
echo "1..0 # SKIP failed to create temporary directory"
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue