Make internal checkPermissions() function virtual:
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 23 Feb 2014 13:56:15 +0000 (14:56 +0100)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Sun, 23 Feb 2014 13:56:15 +0000 (14:56 +0100)
- dummy function in zero VFS plugin
- call dmlite::checkPermissions() when full file-level access is used

src/VfsNs.h

index 33f9558..67eeee2 100644 (file)
@@ -121,7 +121,7 @@ namespace dmlite {
     std::string prefix_;
 
    private:
-    int checkPermissions(const SecurityContext *context, const Acl &acl, const struct stat &stat, mode_t mode);
+    virtual int checkPermissions(const SecurityContext *context, const Acl &acl, const struct stat &stat, mode_t mode);
 
     regex_t *allowRegex, *denyRegex, *allowWriteRegex, *denyWriteRegex;
     bool allowCurrent, allowWriteCurrent;