From f3d060c23d5c83d566b4dcf32bb6f164844ee101 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Fri, 18 Oct 2013 16:31:27 +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 8a4a120..21f8375 100644 --- a/src/VfsNs.cpp +++ b/src/VfsNs.cpp @@ -573,7 +573,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