|
|
@ -1,22 +1,22 @@
|
|
|
|
From cd653102f401f91748c3f038be4d38ddacc2d7db Mon Sep 17 00:00:00 2001
|
|
|
|
From 17e470dc1acca4824b70328d733d5f99c12d0d65 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
|
From: Kamil Dudka <kdudka@redhat.com>
|
|
|
|
Date: Wed, 3 Jul 2024 10:22:49 +0200
|
|
|
|
Date: Wed, 11 May 2011 16:46:45 +0200
|
|
|
|
Subject: [PATCH] findutils-4.4.2-xautofs.patch
|
|
|
|
Subject: [PATCH] findutils-4.4.2-xautofs.patch
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
---
|
|
|
|
doc/find.texi | 4 ++++
|
|
|
|
doc/find.texi | 4 ++++
|
|
|
|
find/defs.h | 3 +++
|
|
|
|
find/defs.h | 3 +++
|
|
|
|
find/find.1 | 3 +++
|
|
|
|
find/find.1 | 3 +++
|
|
|
|
find/ftsfind.c | 11 +++++++++--
|
|
|
|
find/ftsfind.c | 6 ++++++
|
|
|
|
find/parser.c | 9 +++++++++
|
|
|
|
find/parser.c | 9 +++++++++
|
|
|
|
find/util.c | 3 ++-
|
|
|
|
find/util.c | 3 ++-
|
|
|
|
6 files changed, 30 insertions(+), 3 deletions(-)
|
|
|
|
6 files changed, 27 insertions(+), 1 deletions(-)
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/doc/find.texi b/doc/find.texi
|
|
|
|
diff --git a/doc/find.texi b/doc/find.texi
|
|
|
|
index f31f8d1..b2e5fc5 100644
|
|
|
|
index c584298..9731b71 100644
|
|
|
|
--- a/doc/find.texi
|
|
|
|
--- a/doc/find.texi
|
|
|
|
+++ b/doc/find.texi
|
|
|
|
+++ b/doc/find.texi
|
|
|
|
@@ -1517,6 +1517,10 @@ them.
|
|
|
|
@@ -1474,6 +1474,10 @@ them.
|
|
|
|
There are two ways to avoid searching certain filesystems. One way is
|
|
|
|
There are two ways to avoid searching certain filesystems. One way is
|
|
|
|
to tell @code{find} to only search one filesystem:
|
|
|
|
to tell @code{find} to only search one filesystem:
|
|
|
|
|
|
|
|
|
|
|
@ -28,7 +28,7 @@ index f31f8d1..b2e5fc5 100644
|
|
|
|
@deffnx Option -mount
|
|
|
|
@deffnx Option -mount
|
|
|
|
Don't descend directories on other filesystems. These options are
|
|
|
|
Don't descend directories on other filesystems. These options are
|
|
|
|
diff --git a/find/defs.h b/find/defs.h
|
|
|
|
diff --git a/find/defs.h b/find/defs.h
|
|
|
|
index 72048ff..adb5973 100644
|
|
|
|
index 11d1d00..f95ce72 100644
|
|
|
|
--- a/find/defs.h
|
|
|
|
--- a/find/defs.h
|
|
|
|
+++ b/find/defs.h
|
|
|
|
+++ b/find/defs.h
|
|
|
|
@@ -574,6 +574,9 @@ struct options
|
|
|
|
@@ -574,6 +574,9 @@ struct options
|
|
|
@ -42,10 +42,10 @@ index 72048ff..adb5973 100644
|
|
|
|
* no longer exists by the time we get around to processing it.
|
|
|
|
* no longer exists by the time we get around to processing it.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
diff --git a/find/find.1 b/find/find.1
|
|
|
|
diff --git a/find/find.1 b/find/find.1
|
|
|
|
index a536106..b8cf1fb 100644
|
|
|
|
index e851f82..a4799ff 100644
|
|
|
|
--- a/find/find.1
|
|
|
|
--- a/find/find.1
|
|
|
|
+++ b/find/find.1
|
|
|
|
+++ b/find/find.1
|
|
|
|
@@ -576,6 +576,9 @@ to stat them; this gives a significant increase in search speed.
|
|
|
|
@@ -567,6 +567,9 @@ to stat them; this gives a significant increase in search speed.
|
|
|
|
.IP "\-version, \-\-version"
|
|
|
|
.IP "\-version, \-\-version"
|
|
|
|
Print the \fBfind\fR version number and exit.
|
|
|
|
Print the \fBfind\fR version number and exit.
|
|
|
|
|
|
|
|
|
|
|
@ -56,27 +56,15 @@ index a536106..b8cf1fb 100644
|
|
|
|
Don't descend directories on other filesystems.
|
|
|
|
Don't descend directories on other filesystems.
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/find/ftsfind.c b/find/ftsfind.c
|
|
|
|
diff --git a/find/ftsfind.c b/find/ftsfind.c
|
|
|
|
index 109f23a..5c4c2e2 100644
|
|
|
|
index 9fdb8ef..bd7cc37 100644
|
|
|
|
--- a/find/ftsfind.c
|
|
|
|
--- a/find/ftsfind.c
|
|
|
|
+++ b/find/ftsfind.c
|
|
|
|
+++ b/find/ftsfind.c
|
|
|
|
@@ -267,8 +267,8 @@ symlink_loop (const char *name)
|
|
|
|
@@ -479,6 +479,12 @@ consider_visiting (FTS *p, FTSENT *ent)
|
|
|
|
static void
|
|
|
|
|
|
|
|
consider_visiting (FTS *p, FTSENT *ent)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
- struct stat statbuf;
|
|
|
|
|
|
|
|
- mode_t mode;
|
|
|
|
|
|
|
|
+ struct stat statbuf = {0};
|
|
|
|
|
|
|
|
+ mode_t mode = 0;
|
|
|
|
|
|
|
|
int ignore, isdir;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (options.debug_options & DebugSearch)
|
|
|
|
|
|
|
|
@@ -432,6 +432,13 @@ consider_visiting (FTS *p, FTSENT *ent)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ if (options.bypass_autofs
|
|
|
|
+ if (options.bypass_autofs &&
|
|
|
|
+ && 0 == get_statinfo (ent->fts_path, ent->fts_name, &statbuf)
|
|
|
|
+ 0 == strcmp ("autofs", filesystem_type (&statbuf, ent->fts_name)))
|
|
|
|
+ && 0 == strcmp ("autofs", filesystem_type (&statbuf, ent->fts_name)))
|
|
|
|
|
|
|
|
+ {
|
|
|
|
+ {
|
|
|
|
+ fts_set(p, ent, FTS_SKIP); /* descend no further */
|
|
|
|
+ fts_set(p, ent, FTS_SKIP); /* descend no further */
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
@ -85,7 +73,7 @@ index 109f23a..5c4c2e2 100644
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/* this is the preorder visit, but user said -depth */
|
|
|
|
/* this is the preorder visit, but user said -depth */
|
|
|
|
diff --git a/find/parser.c b/find/parser.c
|
|
|
|
diff --git a/find/parser.c b/find/parser.c
|
|
|
|
index 8546982..3d42efc 100644
|
|
|
|
index 52a1ef6..995aec3 100644
|
|
|
|
--- a/find/parser.c
|
|
|
|
--- a/find/parser.c
|
|
|
|
+++ b/find/parser.c
|
|
|
|
+++ b/find/parser.c
|
|
|
|
@@ -138,6 +138,7 @@ static bool parse_used (const struct parser_table*, char *argv[], int *
|
|
|
|
@@ -138,6 +138,7 @@ static bool parse_used (const struct parser_table*, char *argv[], int *
|
|
|
@ -104,7 +92,7 @@ index 8546982..3d42efc 100644
|
|
|
|
PARSE_TEST ("xtype", xtype), /* GNU */
|
|
|
|
PARSE_TEST ("xtype", xtype), /* GNU */
|
|
|
|
#ifdef UNIMPLEMENTED_UNIX
|
|
|
|
#ifdef UNIMPLEMENTED_UNIX
|
|
|
|
/* It's pretty ugly for find to know about archive formats.
|
|
|
|
/* It's pretty ugly for find to know about archive formats.
|
|
|
|
@@ -2594,6 +2596,13 @@ parse_xdev (const struct parser_table* entry, char **argv, int *arg_ptr)
|
|
|
|
@@ -2603,6 +2605,13 @@ parse_xdev (const struct parser_table* entry, char **argv, int *arg_ptr)
|
|
|
|
return parse_noop (entry, argv, arg_ptr);
|
|
|
|
return parse_noop (entry, argv, arg_ptr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -119,7 +107,7 @@ index 8546982..3d42efc 100644
|
|
|
|
parse_ignore_race (const struct parser_table* entry, char **argv, int *arg_ptr)
|
|
|
|
parse_ignore_race (const struct parser_table* entry, char **argv, int *arg_ptr)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
diff --git a/find/util.c b/find/util.c
|
|
|
|
diff --git a/find/util.c b/find/util.c
|
|
|
|
index 959272a..e7d174e 100644
|
|
|
|
index 8577396..4d45f84 100644
|
|
|
|
--- a/find/util.c
|
|
|
|
--- a/find/util.c
|
|
|
|
+++ b/find/util.c
|
|
|
|
+++ b/find/util.c
|
|
|
|
@@ -181,7 +181,7 @@ operators (decreasing precedence; -and is implicit where no others are given):\n
|
|
|
|
@@ -181,7 +181,7 @@ operators (decreasing precedence; -and is implicit where no others are given):\n
|
|
|
@ -140,5 +128,5 @@ index 959272a..e7d174e 100644
|
|
|
|
|
|
|
|
|
|
|
|
if (p->posixly_correct)
|
|
|
|
if (p->posixly_correct)
|
|
|
|
--
|
|
|
|
--
|
|
|
|
2.45.2
|
|
|
|
1.7.4.4
|
|
|
|
|
|
|
|
|
|
|
|