From 119cf0cf78b81866436a6f3eb44ebdf582d72c32 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 18 May 2011 18:26:37 -0700 Subject: correct comment file handling in copy and minor cleanup. --- src/cstore/unionfs/cstore-unionfs.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/cstore/unionfs/cstore-unionfs.cpp') diff --git a/src/cstore/unionfs/cstore-unionfs.cpp b/src/cstore/unionfs/cstore-unionfs.cpp index 41ce008..04e9975 100644 --- a/src/cstore/unionfs/cstore-unionfs.cpp +++ b/src/cstore/unionfs/cstore-unionfs.cpp @@ -1428,8 +1428,10 @@ UnionfsCstore::recursive_copy_dir(const FsPath& src, const FsPath& dst, if (filter_dot_entries) { string of = di->path().filename(); if (!of.empty() && of.at(0) == '.') { - // filter dot files - continue; + // filter dot files (with exceptions) + if (of != C_COMMENT_FILE) { + continue; + } } } b_fs::copy_file(di->path(), nname); -- cgit v1.2.3