bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ACL related test-copy-file failure


From: Jim Meyering
Subject: Re: ACL related test-copy-file failure
Date: Tue, 13 Jan 2009 23:21:19 +0100

Bruno Haible <address@hidden> wrote:
> Hi Jim,
>
> Jim Meyering wrote:
>> Here's more detail for the test-copy-file failure:
>> [Bruno, the output you see below is slightly different that you might
>>  expect because I modified the script to use diff -c rather than cmp. ]
>>
>>   + /tmp/testdir/gltests/test-copy-file tmpfile0 tmpfile1
>>   + /tmp/testdir/gltests/test-sameacls tmpfile0 tmpfile1
>>   + func_test_same_acls tmpfile0 tmpfile1
>>   + getfacl tmpfile0
>>   + sed -e s/tmpfile0/FILENAME/g
>>   + getfacl tmpfile1
>>   + sed -e s/tmpfile1/FILENAME/g
>>   + diff -c tmpaclout1 tmpaclout2
>>   + test linux '!=' none
>>   ++ id -u
>>   + myuid=500
>>   ++ id -g
>>   + mygid=500
>>   + auid=1
>>   + test 1 = 500
>>   + agid=1
>>   + test 1 = 500
>>   + case $acl_flavor in
>>   + setfacl -m user:1:1 tmpfile0
>>   + func_test_copy tmpfile0 tmpfile2
>>   + /tmp/testdir/gltests/test-copy-file tmpfile0 tmpfile2
>>   + /tmp/testdir/gltests/test-sameacls tmpfile0 tmpfile2
>>   + func_test_same_acls tmpfile0 tmpfile2
>>   + getfacl tmpfile0
>>   + sed -e s/tmpfile0/FILENAME/g
>>   + getfacl tmpfile2
>>   + sed -e s/tmpfile2/FILENAME/g
>>   + diff -c tmpaclout1 tmpaclout2
>>   *** tmpaclout1  2009-01-13 09:53:52.769123471 +0100
>>   --- tmpaclout2  2009-01-13 09:53:52.770123229 +0100
>>   ***************
>>   *** 2,9 ****
>>     # owner: meyering
>>     # group: meyering
>>     user::rw-
>>   ! user:bin:--x
>>   ! group::---
>>   ! mask::--x
>>     other::---
>>
>>   --- 2,7 ----
>>     # owner: meyering
>>     # group: meyering
>>     user::rw-
>>   ! group::--x
>>     other::---
>>
>>   + exit 1
>>   + exit 1
>>   FAIL: test-copy-file.sh

Hi Bruno,

Thanks for investigating.

> It's very surprising to see this test fail on Linux. The two ACLs (of the
> original file and of the copied file) are indeed different. To get more 
> insight
> into the problem, I would use a testdir created with
>     $ gnulib-tool --create-testdir --with-tests acl
> and look at the tests in this order:
>     test-file-has-acl.sh
>     test-set-mode-acl.sh
>     test-copy-acl.sh
> (because copying an ACL is the most complex among the three operations).
>
> You did not by chance run ./configure with the option --disable-acl?

No.

> What kind of file system are /tmp and $TMPDIR mounted on?

/tmp is ext3, $TMPDIR is tmpfs




reply via email to

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