coreutils
[Top][All Lists]
Advanced

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

Re: new snapshot available: coreutils-8.17.70-1bacb4


From: Pádraig Brady
Subject: Re: new snapshot available: coreutils-8.17.70-1bacb4
Date: Wed, 08 Aug 2012 17:14:10 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20110816 Thunderbird/6.0

On 08/08/2012 05:07 PM, Jim Meyering wrote:
> Bernhard Voelker wrote:
> 
>> On 08/08/2012 05:43 PM, Pádraig Brady wrote:
>>
>>> +require_mount_list_()
>>> +{
>>> +  df >/dev/null 2>&1 ||
>>> +    skip_ "Unable to read the list of mounted file systems."
>>> +}
>>> +
>>
>> Hmm, I think this is not enough: df can also fail due to other reasons,
>> e.g. when a mount point is not reachable by the user:
>>
>>   $ src/df > /dev/null  ; echo $?
>>   src/df: ‘/root/backup’: Permission denied
>>   1
> 
> Good point.
> 
> "df ." or "df /" should be more reliable.

But then it won't fail. It's tricky :)

Updated version that explicitly matches the error is attached.

cheers,
Pádraig.

Attachment: df-tests.diff
Description: Text document


reply via email to

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