[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd
From: |
Jim Meyering |
Subject: |
Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd |
Date: |
Sat, 26 Jan 2008 19:06:58 +0100 |
Elias Pipping <address@hidden> wrote:
> On Sat, Jan 26, 2008 at 05:34:17PM +0100, Jim Meyering wrote:
>>
>> Here's an additional patch that should get us past the latest failure.
>
> Unfortunately, it doesn't.
...
> ++ stat -c '%u %g' b
> + s='1000 0'
> + test 'x1000 0' '!=' 'x1000 1000'
> + test 'setuidgid -g 1000,1001 1000 cp:1000 0' = 'cp:1000 0'
> + echo './preserve-gid: setuidgid -g 1000,1001 1000 cp a0 b: 1000 1000 !=
> 1000 0'
> ./preserve-gid: setuidgid -g 1000,1001 1000 cp a0 b: 1000 1000 != 1000 0
But it came close :-)
Thanks for the quick feedback.
I should have matched the whole command, from "setuidgid -g...cp",
not just "cp".
Here's a better one:
* tests/cp/preserve-gid: accommodate Darwin9 oddity.
diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid
index 9537dc0..82ee861 100755
--- a/tests/cp/preserve-gid
+++ b/tests/cp/preserve-gid
@@ -33,8 +33,15 @@ t0() {
"$@" "$f" b || exit 1
s=`stat -c '%u %g' b`
if test "x$s" != "x$u $g"; then
- echo "$0: $* $f b: $u $g != $s" 1>&2
- (exit 1); exit 1
+ # Allow the actual group to match that of the parent directory
+ # (it was set to 0 above) if the command was "cp".
+ case "$@:$s" in
+ *" cp:$u 0") ;;
+ *)
+ echo "$0: $* $f b: $u $g != $s" 1>&2
+ (exit 1); exit 1
+ ;;
+ esac
fi
}
--
1.5.4.rc4.26.g228a
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, (continued)
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Jim Meyering, 2008/01/23
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Elias Pipping, 2008/01/23
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Jim Meyering, 2008/01/26
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Elias Pipping, 2008/01/26
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Jim Meyering, 2008/01/26
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Elias Pipping, 2008/01/26
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Jim Meyering, 2008/01/26
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Elias Pipping, 2008/01/26
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Jim Meyering, 2008/01/26
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Elias Pipping, 2008/01/26
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd,
Jim Meyering <=
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Elias Pipping, 2008/01/26
- coreutils-6.10 tests vs. Mac OS 10.5.1 (Darwin 9.1), Jim Meyering, 2008/01/26
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Andreas Schwab, 2008/01/26
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Elias Pipping, 2008/01/26