mirror of
https://github.com/vgough/encfs.git
synced 2024-11-22 07:53:31 +01:00
Fix incorrect masking in encfsctl export's copyContents
Code did not properly detect when a file had S_IFLNK mode
This commit is contained in:
parent
ad43aa10b2
commit
d2f243a195
@ -453,7 +453,7 @@ static int copyContents(const std::shared_ptr<EncFS_Root> &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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user