diff --git a/encfs/encfsctl.cpp b/encfs/encfsctl.cpp index 4964d23..0ce8778 100644 --- a/encfs/encfsctl.cpp +++ b/encfs/encfsctl.cpp @@ -453,7 +453,7 @@ static int copyContents(const std::shared_ptr &rootInfo, if (node->getAttr(&st) != 0) return EXIT_FAILURE; - if ((st.st_mode & S_IFLNK) == S_IFLNK) { + if ((st.st_mode & S_IFMT) == S_IFLNK) { string d = rootInfo->root->cipherPath(encfsName); char linkContents[PATH_MAX + 2];