diff options
| -rw-r--r-- | xlators/features/marker/utils/syncdaemon/resource.py | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py index 6882164b9..599267824 100644 --- a/xlators/features/marker/utils/syncdaemon/resource.py +++ b/xlators/features/marker/utils/syncdaemon/resource.py @@ -93,6 +93,9 @@ class Server(object):      @staticmethod      def entries(path): +        # prevent symlinks being followed +        if not stat.S_ISDIR(os.lstat(path).st_mode): +            raise OSError(ENOTDIR, os.strerror(ENOTDIR))          return os.listdir(path)      @classmethod  | 
