FreeBSD Bugzilla – Attachment 12335 Details for
Bug 23906
[PATCH] find -fstype local traverses non-local filesystems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.05 KB, created by
dima
on 2000-12-28 12:10:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
dima
Created:
2000-12-28 12:10:00 UTC
Size:
1.05 KB
patch
obsolete
>Index: function.c >=================================================================== >RCS file: /st/src/FreeBSD/src/usr.bin/find/function.c,v >retrieving revision 1.27 >diff -u -r1.27 function.c >--- function.c 2000/07/28 20:02:42 1.27 >+++ function.c 2000/12/23 23:28:18 >@@ -514,6 +514,8 @@ > static int val_type, val_flags; > char *p, save[2]; > >+ extern FTS *tree; >+ > /* Only check when we cross mount point. */ > if (first || curdev != entry->fts_statp->st_dev) { > curdev = entry->fts_statp->st_dev; >@@ -555,6 +557,19 @@ > } > switch (plan->flags) { > case F_MTFLAG: >+ /* >+ * If the filesystem isn't local, and we're looking >+ * for local filesystems (-fstype local), don't >+ * traverse it. Without this, we'll go on looking for >+ * local files in a non-local filesystem. >+ */ >+ if (((val_flags & MNT_LOCAL) == 0) && >+ ((plan->mt_data & MNT_LOCAL) != 0)) { >+ if (fts_set(tree, entry, FTS_SKIP)) >+ err(1, "%s", entry->fts_path); >+ return (0); >+ } >+ > return (val_flags & plan->mt_data) != 0; > case F_MTTYPE: > return (val_type == plan->mt_data);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 23906
: 12335