diff options
author | Jim Meyering <jim@meyering.net> | 2005-09-25 20:46:30 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-09-25 20:46:30 +0000 |
commit | b1e97405b2a6d31fc623f24046886afe25f61526 (patch) | |
tree | bdbbb65edf2fe4826cc5fb00a3ca1723f30b8983 /tests | |
parent | 2c5def04621f3ea7dda4540af60fe2f501763152 (diff) | |
download | coreutils-b1e97405b2a6d31fc623f24046886afe25f61526.tar.xz |
(setuid-etc): Work around output mismatch when
a just-created test file cannot be made set-group-ID.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ls-2/tests | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ls-2/tests b/tests/ls-2/tests index 690203ecd..bb5f39c45 100755 --- a/tests/ls-2/tests +++ b/tests/ls-2/tests @@ -107,6 +107,14 @@ my @Tests = . "\e[37;44msticky\e[0m\n" . "\e[m" }, + + # This is a kludge to work around the fact that on some systems + # the files we've just created have a `group ID' that is not one + # of those associated with the current user. Hence, attempting + # to do `chmod g+s setgid' fails. This substitution maps the + # non-highlight 0m code to the expected one. + {OUT_SUBST => 's/\[0msetgid/[30;43msetgid/'}, + {PRE => sub { system "touch setuid && chmod u+s setuid;" |