Maciej Pilichowski wrote:
> Hello,
> 
>> Pádraig Brady:
>>
>> For portability and maintainability reasons
>> we can't really be reinterpreting the errors 
> 
> No, I didn't mean that -- I mean the first part. Instead of indicating 
> the invalid argument was filename, point out that the flag was the 
> cause. Something like this:
> 
> dd: iflag=direct: Invalid argument
> 
> Of course if it is possible

The error is being issued from open("name", flags);
So it's not really possible to reinterpret EINVAL
to the above output for the reasons mentioned previously.

cheers,
Pádraig.



Reply via email to