NetBSD-Bugs archive

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

Re: bin/55815: tar opens device files



On Fri, Jun 04, 2021 at 05:10:02PM +0000, David Holland wrote:
>  However, it also seems foolish to pretend this is a real issue for
>  device nodes, so it seems like a perfectly adequate solution is for
>  tar to check for device nodes and not open them. Adding another open
>  mode seems like severe overkill. (O_NONBLOCK is sufficient for named
>  pipes.)

Checking for device nodes introduces TOCTOA problems though.

Joerg


Home | Main Index | Thread Index | Old Index