mirror of
https://github.com/vgough/encfs.git
synced 2025-08-17 17:21:07 +02:00
Merge pull request #172 from jetwhiz/fork-encfsctl-patch
Fix incorrect masking in encfsctl export's copyContents
This commit is contained in:
@@ -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];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user