vfs:glusterfs: treat ENOATTR as ENOENT
[obnox/samba-autobuild/.git] / source3 / modules / vfs_glusterfs.c
index e8617215355b44ee4a8992e905c546fc985275b2..95f32f9d0a6086ff0a656198fbae44031fd798ea 100644 (file)
@@ -1473,7 +1473,7 @@ static int vfs_gluster_get_real_filename(struct vfs_handle_struct *handle,
                            GLUSTER_NAME_MAX + 1);
        if (ret == -1) {
                if (errno == ENOATTR) {
-                       errno = EOPNOTSUPP;
+                       errno = ENOENT;
                }
                return -1;
        }