s3: GPFS can't deal with mangled names
authorVolker Lendecke <vl@samba.org>
Thu, 24 Feb 2011 09:50:46 +0000 (02:50 -0700)
committerVolker Lendecke <vl@samba.org>
Wed, 2 Mar 2011 11:40:52 +0000 (12:40 +0100)
In getrealfilename, avoid calling the GPFS function
(cherry picked from commit 358f031ccf7e5df11416b977965dfbb184e2bd25)

source3/modules/vfs_gpfs.c

index 7e7ee34ab1f158b961da9fcdc188c235f388974e..d36cdbe2a922fea5573edb5a2fd918cee529b11b 100644 (file)
@@ -117,6 +117,13 @@ static int vfs_gpfs_get_real_filename(struct vfs_handle_struct *handle,
        char *full_path;
        char real_pathname[PATH_MAX+1];
        int buflen;
+       bool mangled;
+
+       mangled = mangle_is_mangled(name, handle->conn->params);
+       if (mangled) {
+               return SMB_VFS_NEXT_GET_REAL_FILENAME(handle, path, name,
+                                                     mem_ctx, found_name);
+       }
 
        full_path = talloc_asprintf(talloc_tos(), "%s/%s", path, name);
        if (full_path == NULL) {