GNU bug report logs - #21130
test fail: 'tests/ls/stat-failed'

Previous Next

Package: coreutils;

Reported by: Assaf Gordon <assafgordon <at> gmail.com>

Date: Fri, 24 Jul 2015 21:47:01 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Pádraig Brady <P <at> draigBrady.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#21130: closed (test fail: 'tests/ls/stat-failed')
Date: Sat, 21 Nov 2015 11:07:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 21 Nov 2015 11:05:29 +0000
with message-id <56504FF9.3070002 <at> draigBrady.com>
and subject line Re: bug#21130: test fail: 'tests/ls/stat-failed'
has caused the debbugs.gnu.org bug report #21130,
regarding test fail: 'tests/ls/stat-failed'
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
21130: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21130
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Assaf Gordon <assafgordon <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: test fail: 'tests/ls/stat-failed'
Date: Fri, 24 Jul 2015 17:46:36 -0400
[Message part 3 (text/plain, inline)]
Hello,

checking coreutils 8.24, running on NFS, the test 'ls/stat-failed' fails (log attached).

If I understand correctly,
The test creates a symlink to a directory then removes execute permissions:
   mkdir d
   ln -s / d/s
   chmod 600 d

Then tries to dereference it:
    $ ls -Log d
    ls: cannot access d/s: Permission denied
    total 0
    d????????? ? ?            ? s

The test expect 's' to have 'l' type, on my system it is 'd'.

The attached patch avoids the failure, though I don't know if this is correct or not (perhaps this failure should not be avoided?).

The system is:
    $ uname -a
    Linux XXX 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
    $ gcc --version
     gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)

The file system is NFS.


regards,
 - assaf
[ls-stat-failed-test-suite.log (text/x-log, attachment)]
[ls-stat-failed.patch (text/x-diff, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Pádraig Brady <P <at> draigBrady.com>
To: 21130-done <at> debbugs.gnu.org
Subject: Re: bug#21130: test fail: 'tests/ls/stat-failed'
Date: Sat, 21 Nov 2015 11:05:29 +0000
[Message part 7 (text/plain, inline)]
On 24/07/15 22:46, Assaf Gordon wrote:
> Hello,
> 
> checking coreutils 8.24, running on NFS, the test 'ls/stat-failed' fails (log attached).
> 
> If I understand correctly,
> The test creates a symlink to a directory then removes execute permissions:
>     mkdir d
>     ln -s / d/s
>     chmod 600 d
> 
> Then tries to dereference it:
>      $ ls -Log d
>      ls: cannot access d/s: Permission denied
>      total 0
>      d????????? ? ?            ? s
> 
> The test expect 's' to have 'l' type, on my system it is 'd'.
> 
> The attached patch avoids the failure, though I don't know if this is correct or not (perhaps this failure should not be avoided?).
> 
> The system is:
>      $ uname -a
>      Linux XXX 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>      $ gcc --version
>       gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
> 
> The file system is NFS.

False failure documented and avoided in the attached.

thanks,
Pádraig.

[stat-false-fail.patch (text/x-patch, attachment)]

This bug report was last modified 9 years and 187 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.