From fc2162297a5759c5707e2f7f24bf9ae7590cfbde Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 19 Oct 2013 21:15:59 +0200 Subject: [PATCH] Proper check for default ACL in create(). --- src/VfsNs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VfsNs.cpp b/src/VfsNs.cpp index 6efe32f..2f22360 100644 --- a/src/VfsNs.cpp +++ b/src/VfsNs.cpp @@ -579,7 +579,7 @@ void VfsCatalog::create(const std::string& path, mode_t mode) throw (DmException } // Generate inherited ACL's if there are defaults - if (parent.acl.has(AclEntry::kDefault | AclEntry::kUserObj)) + if (parent.acl.has(AclEntry::kDefault | AclEntry::kUserObj) != -1) newAcl = Acl(parent.acl, getUid(this->secCtx_), egid, mode, &mode); // Create new -- 1.8.2.3