From 3b17384631b95be73f69dd3a712009a5792c0f3c Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 21 Jan 2006 01:20:03 +0000 Subject: [PATCH] Implemented the -xx behavior that skips mount-point dirs. --- flist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flist.c b/flist.c index 18105d10..9654bd72 100644 --- a/flist.c +++ b/flist.c @@ -806,8 +806,11 @@ struct file_struct *make_file(char *fname, struct file_list *flist, * into a mount-point directory, not to avoid copying a symlinked * file if -L (or similar) was specified. */ if (one_file_system && st.st_dev != filesystem_dev - && S_ISDIR(st.st_mode)) + && S_ISDIR(st.st_mode)) { + if (one_file_system > 1) + return NULL; flags |= FLAG_MOUNT_POINT; + } if (is_excluded(thisname, S_ISDIR(st.st_mode) != 0, filter_level)) return NULL; -- 2.34.1