[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: |
Elias Pipping |
Subject: |
Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd |
Date: |
Wed, 23 Jan 2008 18:32:19 +0100 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Wed, Jan 23, 2008 at 01:40:22PM +0100, Jim Meyering wrote:
> If that's the problem, here's an untested fix:
Unfortunately, that doesn't seem to help.
% tar xf coreutils-6.10.tar.gz
% cd coreutils-6.10
% cat ~/foo.patch
diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid
index 5f2c050..e96a0bd 100755
--- a/tests/cp/preserve-gid
+++ b/tests/cp/preserve-gid
@@ -1,7 +1,7 @@
#!/bin/sh
# Verify that cp -p preserves GID when it is possible.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -20,6 +20,8 @@
PRIV_CHECK_ARG=require-root . "$srcdir/../priv-check"
. "$srcdir/../test-lib.sh"
+. "$abs_top_srcdir/tests/setgid-check"
+
create() {
echo "$1" > "$1" || exit 1
chown "+$2:+$3" "$1" || exit 1
% patch -p1 < ~/foo.patch
patching file tests/cp/preserve-gid
% ./configure --disable-acl
% make -j3
% sudo env VERBOSE=yes NON_ROOT_USERNAME=$USER make check -C tests/cp
TESTS=preserve-gid
make check-TESTS
FAIL: preserve-gid.log
===========================================
1 of 1 tests failed
See tests/cp/test-suite.log
Please report it to address@hidden
===========================================
=================================================
GNU coreutils 6.10: tests/cp/test-suite.log
=================================================
1 of 1 tests failed.
.. contents:: :depth: 2
FAIL: preserve-gid.log (exit: 1)
================================
+ cp --version
cp (GNU coreutils) 6.10
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering.
++ perl -le 'foreach my $i (1000..16*1024-1) { getpwuid $i or (print $i),
exit }'
+ nameless_uid=1000
++ perl -le 'foreach my $i (1000..16*1024) { getgrgid $i or (print $i), exit
}'
+ nameless_gid1=1000
++ perl -le 'foreach my $i (1000+1..16*1024) { getgrgid $i or (print $i),
exit }'
+ nameless_gid2=1001
+ test -z 1000
+ test -z 1000
+ test -z 1001
+ chown +1000 .
+ create a0 0 0
+ echo a0
+ chown +0:+0 a0
+ create b0 1000 1000
+ echo b0
+ chown +1000:+1000 b0
+ create b1 1000 1001
+ echo b1
+ chown +1000:+1001 b1
+ create c0 0 1000
+ echo c0
+ chown +0:+1000 c0
+ create c1 0 1001
+ echo c1
+ chown +0:+1001 c1
+ t0 a0 0 0 cp
+ f=a0
+ shift
+ u=0
+ shift
+ g=0
+ shift
+ rm -f b
+ cp a0 b
++ stat -c '%u %g' b
+ s='0 20'
+ test 'x0 20' '!=' 'x0 0'
+ echo './preserve-gid: cp a0 b: 0 0 != 0 20'
./preserve-gid: cp a0 b: 0 0 != 0 20
+ exit 1
+ exit 1
+ st=1
+ cleanup_
+ :
+ d=/Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.qmKidiSEBi
+ cd /Users/pipping/coreutils-6.10/tests/cp
+ chmod -R u+rwx
/Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.qmKidiSEBi
+ rm -rf /Users/pipping/coreutils-6.10/tests/cp/cu-preserve-gid.qmKidiSEBi
+ exit 1
make[2]: *** [test-suite.log] Error 1
make[1]: *** [check-TESTS] Error 2
make: *** [check-am] Error 2
%
-- Elias
pgpUyeQTuZMZF.pgp
Description: PGP signature
- Re: coreutils 6.9.92 fail to configure on *bsd, (continued)
- Re: coreutils 6.9.92 fail to configure on *bsd, Jim Meyering, 2008/01/13
- coreutils 6.9.92 tests fail on i386-apple-darwin9.1.0, Jim Meyering, 2008/01/16
- new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Jim Meyering, 2008/01/17
- Message not available
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Elias Pipping, 2008/01/17
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Jim Meyering, 2008/01/21
- 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/23
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd,
Elias Pipping <=
- 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, 2008/01/26
- Re: new snapshot [Re: coreutils 6.9.92 fail to configure on *bsd, Elias Pipping, 2008/01/26