diff options
author | jilles <jilles@FreeBSD.org> | 2012-07-25 21:59:10 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2012-07-25 21:59:10 +0000 |
commit | 06d71385564614c8f19a2407e234e9f2ea142750 (patch) | |
tree | 9e7e20bd4ba232a68faf9db468bc5fe8597aae6e /usr.bin/find/main.c | |
parent | 9a57e402a6d1d149388a8af3ffce132e6ea9d0dc (diff) | |
download | FreeBSD-src-06d71385564614c8f19a2407e234e9f2ea142750.zip FreeBSD-src-06d71385564614c8f19a2407e234e9f2ea142750.tar.gz |
find: Implement real -ignore_readdir_race.
If -ignore_readdir_race is present, [ENOENT] errors caused by deleting a
file after find has read its name from a directory are ignored.
Formerly, -ignore_readdir_race did nothing.
PR: bin/169723
Submitted by: Valery Khromov and Andrey Ignatov
Diffstat (limited to 'usr.bin/find/main.c')
-rw-r--r-- | usr.bin/find/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/find/main.c b/usr.bin/find/main.c index 4f7064b..68972e4 100644 --- a/usr.bin/find/main.c +++ b/usr.bin/find/main.c @@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$"); time_t now; /* time find was run */ int dotfd; /* starting directory */ int ftsoptions; /* options for the ftsopen(3) call */ +int ignore_readdir_race = 0; /* ignore readdir race */ int isdeprecated; /* using deprecated syntax */ int isdepth; /* do directories on post-order visit */ int isoutput; /* user specified output operator */ |