From: Alain Spineux Date: Thu, 3 Dec 2020 13:37:59 +0000 (+0100) Subject: regress: test custom symlink permissions on FreeBSD and macOS X-Git-Tag: Release-9.6.7~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e732ba46c7b6c29c8f171b2afadd378ee07ad4a3;p=thirdparty%2Fbacula.git regress: test custom symlink permissions on FreeBSD and macOS --- diff --git a/regress/tests/weird-files-test b/regress/tests/weird-files-test index 8bd55e63f..ba57db9f8 100755 --- a/regress/tests/weird-files-test +++ b/regress/tests/weird-files-test @@ -36,6 +36,13 @@ cd weird-files perl socket.pl cd .. +# some system like MacOS & FreeBSD have a lchmod() system call +# and the chmod command has a "-h" option to not follow the symlink +# lets try to use the "-h" option and ignore the error +if ! chmod -l 751 "${cwd}/weird-files"/soft-file2 ; then + true # ignore the error +fi + start_test cat <tmp/bconcmds