directories (but none of their entries). This makes
`cp --one-file-system' work the same way tar does.
From Marty Leisner.
return 1;
}
- /* Are we crossing a file system boundary? */
- if (x->one_file_system && device != 0 && device != src_sb.st_dev)
- return 0;
-
/* We wouldn't insert a node unless nlink > 1, except that we need to
find created files so as to not copy infinitely if a directory is
copied into itself. */
if (x->verbose)
printf ("%s -> %s\n", src_path, dst_path);
+
+ /* Are we crossing a file system boundary? */
+ if (x->one_file_system && device != 0 && device != src_sb.st_dev)
+ return 0;
}
/* Copy the contents of the directory. */