|
From: | Phillip Susi |
Subject: | Re: dd new iflag= oflag= flags directory, nolinks |
Date: | Tue, 07 Mar 2006 10:01:27 -0500 |
User-agent: | Thunderbird 1.5 (Windows/20051201) |
Paul Eggert wrote:
You can open a directory without writing to it. Something like this: $ mkdir foo $ dd if=foo iflag=directory count=0 0+0 records in 0+0 records out 0 bytes (0 B) copied, 2e-05 seconds, 0 B/s You can think of this as a way to do a "test -d foo && test -r foo" atomically, without race conditions. Admittedly this is somewhat twisted, but the new documentation does say that iflag=directory is of "limited utility"....
[Prev in Thread] | Current Thread | [Next in Thread] |