Proper check for default ACL in create().
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sat, 19 Oct 2013 19:15:59 +0000 (21:15 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 23 Feb 2014 13:16:19 +0000 (14:16 +0100)
src/VfsNs.cpp

index 6efe32f..2f22360 100644 (file)
@@ -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