[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21130: test fail: 'tests/ls/stat-failed'
From: |
Pádraig Brady |
Subject: |
bug#21130: test fail: 'tests/ls/stat-failed' |
Date: |
Sat, 25 Jul 2015 18:13:12 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
On 25/07/15 16:05, Paul Eggert wrote:
> Pádraig Brady wrote:
>>> On 24/07/15 22:46, Assaf Gordon wrote:
>>>> 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
>
>> Another possibility might be that the chmod(1) and stat(2) are racy
>> thus allowing the stat() to succeed? If that was the case then
>> a stat d/s && skip_ ... would avoid the false failure?
>
> Sorry, I don't understand the scenario here. If the stat succeeds, why would
> ls
> output '????'? The '????' means that the stat failed.
Yes good point. So it must be that d_type is set to 'd' erroneously.
What is the file system and operating system on the NFS server?
- bug#21130: test fail: 'tests/ls/stat-failed', Assaf Gordon, 2015/07/24
- bug#21130: test fail: 'tests/ls/stat-failed', Pádraig Brady, 2015/07/25
- bug#21130: test fail: 'tests/ls/stat-failed', Pádraig Brady, 2015/07/25
- bug#21130: test fail: 'tests/ls/stat-failed', Paul Eggert, 2015/07/25
- bug#21130: test fail: 'tests/ls/stat-failed',
Pádraig Brady <=
- bug#21130: test fail: 'tests/ls/stat-failed', Assaf Gordon, 2015/07/25
- bug#21130: test fail: 'tests/ls/stat-failed', Paul Eggert, 2015/07/25
- bug#21130: test fail: 'tests/ls/stat-failed', Assaf Gordon, 2015/07/25
- bug#21130: test fail: 'tests/ls/stat-failed', Paul Eggert, 2015/07/25