perms644 | bf::owner_exe | bf::group_exe | bf::others_exe;
for (bf::recursive_directory_iterator iter(path);
iter != bf::recursive_directory_iterator(); ++iter) {
- if (bf::is_directory(iter->path()) &&
+ if (bf::is_symlink(symlink_status(iter->path())) ||
+ (bf::is_directory(iter->path()) &&
(iter->path().filename() == ".mmc" ||
iter->path().filename() == ".pkg" ||
- iter->path().filename() == "tep")) {
- // skip path, which is related to mount or directory installer creates
+ iter->path().filename() == "tep"))) {
+ // skip symlink or path which is related to
+ // mount or directory installer creates
continue;
} else if (bf::is_directory(iter->path())) {
// directories