NetBSD-Bugs archive

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

Re: bin/55815: tar opens device files



> I don't know what's available for fetching extattrs, but if that requires
> an open, we should fix that, and make them available without opening.
> But surely there is already a way, I can't believe that ls attempts to
> open files, yet it shows (when asked) extattrs, right?

There are methods by pathname and by fd. By pathname suffer from
TOCTOU, so we need to do by fd. To get an fd we need open. So the
only reasonable solution seems to be to provide an open flag that does
not have side effects on devices.

christos


Home | Main Index | Thread Index | Old Index