aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/find/function.c
diff options
context:
space:
mode:
authorJilles Tjoelker <jilles@FreeBSD.org>2012-07-25 21:59:10 +0000
committerJilles Tjoelker <jilles@FreeBSD.org>2012-07-25 21:59:10 +0000
commit40072dc2b7edb0c5f07399ea090cceb7ef7ec58c (patch)
tree9e7e20bd4ba232a68faf9db468bc5fe8597aae6e /usr.bin/find/function.c
parent7f14a4d6b1f187da5b4157085d3093b59ba53659 (diff)
Notes
Diffstat (limited to 'usr.bin/find/function.c')
-rw-r--r--usr.bin/find/function.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/usr.bin/find/function.c b/usr.bin/find/function.c
index eabb0549f73cc..5f8f8130432d7 100644
--- a/usr.bin/find/function.c
+++ b/usr.bin/find/function.c
@@ -975,6 +975,25 @@ c_group(OPTION *option, char ***argvp)
}
/*
+ * -ignore_readdir_race functions --
+ *
+ * Always true. Ignore errors which occur if a file or a directory
+ * in a starting point gets deleted between reading the name and calling
+ * stat on it while find is traversing the starting point.
+ */
+
+PLAN *
+c_ignore_readdir_race(OPTION *option, char ***argvp __unused)
+{
+ if (strcmp(option->name, "-ignore_readdir_race") == 0)
+ ignore_readdir_race = 1;
+ else
+ ignore_readdir_race = 0;
+
+ return palloc(option);
+}
+
+/*
* -inum n functions --
*
* True if the file has inode # n.