NetBSD-Bugs archive

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

Re: bin/55815: tar opens device files

The following reply was made to PR bin/55815; it has been noted by GNATS.

From: Joerg Sonnenberger <>
Subject: Re: bin/55815: tar opens device files
Date: Fri, 4 Jun 2021 22:36:50 +0200

 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.

Home | Main Index | Thread Index | Old Index