Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd
From:
Elias Pipping
Subject:
Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd
Date:
Sat, 26 Jan 2008 18:37:37 +0100
User-agent:
Mutt/1.5.17 (2007-11-01)
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.
> diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid
> index 9537dc0..15bb51c 100755
> --- a/tests/cp/preserve-gid
> +++ b/tests/cp/preserve-gid
> @@ -33,8 +33,14 @@ 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 (set to 0 above)
> + # if the command was "cp".
> + if test "$@:$s" = "cp:$u 0"; then
> + :
> + else
> + echo "$0: $* $f b: $u $g != $s" 1>&2
> + (exit 1); exit 1
> + fi
> fi
> }
-- Elias