bug-coreutils
[Top][All Lists]
Advanced

[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: Elias Pipping
Subject: Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd
Date: Sat, 26 Jan 2008 19:44:43 +0100
User-agent: Mutt/1.5.17 (2007-11-01)

On Sat, Jan 26, 2008 at 07:06:58PM +0100, Jim Meyering wrote:
> 
> Here's a better one:

More progress! (still fails)

> * 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


-- Elias

Attachment: preserve-gid_test_new3
Description: Text document

Attachment: preserve-gid_test3.diff
Description: Text document

Attachment: pgpZOfRRHjzkV.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]