On Fri, Aug 22, 2014 at 6:15 PM, Bernhard Voelker
On 08/22/2014 07:28 PM, Greg Freemyer wrote:
So the only place I have yet found that even allows the "directory" flag is linux, but the linux kernel blocks it from working because it doesn't provide read or write access to raw directories.
Well, the Linux kernel is not the only OS for GNU coreutils.
Why do I suspect O_DIRECTORY is a linux only flag for open. In the man page for open it says: -- O_DIRECTORY - If pathname is not a directory, cause the open to fail. This flag is Linux-specific, and was added in kernel version 2.1.126, to avoid denial-of-service problems if opendir(3)is called on a FIFO or tape device, but should not be used outside of the implementation of opendir(3). -- I'm going to drop out of this thread since it's not going anywhere, but I really suspect the "directory" flag was added to dd by some over-zealous developer. It clearly doesn't have a use-case because it is not meant for applications to ever open directories other than via opendir(3). Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org