summaryrefslogtreecommitdiff
path: root/tests/chmod
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chmod')
-rwxr-xr-xtests/chmod/setgid4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/chmod/setgid b/tests/chmod/setgid
index 0c583f274..a91c6a581 100755
--- a/tests/chmod/setgid
+++ b/tests/chmod/setgid
@@ -30,7 +30,7 @@ test=$abs_top_builddir/src/test
umask 0
mkdir d || framework_failure
-chmod g+s d 2> /dev/null && $test -g d ||
+chmod g+s d 2> /dev/null && "$test" -g d ||
{
# This is required because on some systems (at least NetBSD 1.4.2A),
# it may happen that when you create a directory, its group isn't one
@@ -44,7 +44,7 @@ chmod g+s d 2> /dev/null && $test -g d ||
}
# "chmod g+s d" does nothing on some NFS file systems.
-$test -g d || {
+"$test" -g d || {
echo 1>&2 "$0: cannot create setgid directories," \
"so can't run this test"
exit 77