Merge pull request #172 from jetwhiz/fork-encfsctl-patch

Fix incorrect masking in encfsctl export's copyContents
This commit is contained in:
Valient Gough
2016-06-21 20:28:28 -07:00
committed by GitHub

View File

@ -453,7 +453,7 @@ static int copyContents(const std::shared_ptr<EncFS_Root> &rootInfo,
if (node->getAttr(&st) != 0) return EXIT_FAILURE; 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); string d = rootInfo->root->cipherPath(encfsName);
char linkContents[PATH_MAX + 2]; char linkContents[PATH_MAX + 2];