Re: SYSFS "errors"

From: Felipe Balbi
Date: Tue Feb 19 2013 - 08:39:30 EST


Hi,

On Tue, Feb 19, 2013 at 02:28:54PM +0100, Borislav Petkov wrote:
> On Tue, Feb 19, 2013 at 03:15:00PM +0200, Felipe Balbi wrote:
> > what's the problem with that ?
>
> Not a problem - simply annoying.
>
> $ ./test.sh
> cat: /path/to/file/that/doesnt/exist.txt: No such file or directory
> Setting scrubrate to:
>
> I'm sure someone would ask themselves why all of a sudden the file is
> gone.
>
> > $ cat /path/to/file/that/doesnt/exist.txt
> > cat: /path/to/file/that/doesnt/exist.txt: No such file or directory
> >
> > Didn't see any gates to hell opening here...
>
> And I don't see why we have to debate such a trivial thing when we can
> fix it *properly* without *absolutely* *not* upsetting userspace.

because changing the permission will cause the same issue:

$ cat temporary.txt
cat: temporary.txt: Permission denied
$ ls -l temporary.txt
---------- 1 balbi balbi 0 Feb 19 15:37 temporary.txt
$ cat temporary.txt
cat: temporary.txt: Permission denied
$ cat non-existent.txt
cat: non-existent.txt: No such file or directory

just a different error code is returned...

--
balbi

Attachment: signature.asc
Description: Digital signature