summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-24 02:50:46 -0700
committerVolker Lendecke <vl@samba.org>2011-03-02 10:46:11 +0100
commit358f031ccf7e5df11416b977965dfbb184e2bd25 (patch)
treedf1e3e630cb6db4d9029761dcb7c74e45651fe6c
parent8870fcb154d27c0d10d3de3f926a95743b6e4e28 (diff)
downloadsamba-358f031ccf7e5df11416b977965dfbb184e2bd25.tar.gz
samba-358f031ccf7e5df11416b977965dfbb184e2bd25.tar.bz2
samba-358f031ccf7e5df11416b977965dfbb184e2bd25.zip
s3: GPFS can't deal with mangled names
In getrealfilename, avoid calling the GPFS function
-rw-r--r--source3/modules/vfs_gpfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index 7e7ee34ab1..d36cdbe2a9 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -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) {