(procdir): Use is_individual_file to check for
files explicitely specified in the command line. Fixes bug reported by Dat Head on 19 Jun 2006 (descending into mountpoints with --one-file-system in use)
This commit is contained in:
@@ -325,7 +325,7 @@ procdir (char *name_buffer, struct stat *stat_data,
|
||||
omit it... */
|
||||
if (one_file_system_option && device != stat_data->st_dev
|
||||
/* ... except if it was explicitely given in the command line */
|
||||
&& !((np = name_scan (name_buffer, true)) && np->explicit))
|
||||
&& !is_individual_file (name_buffer))
|
||||
directory->children = NO_CHILDREN;
|
||||
else if (children == ALL_CHILDREN)
|
||||
directory->children = ALL_CHILDREN;
|
||||
|
||||
Reference in New Issue
Block a user