From 419ff2e73983efc5b31e98795e99ab4fdff41e6e Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Wed, 26 May 2010 09:28:39 +0000 Subject: resolver: set safer conditionals during path creation when client would send just the path as part of a transaction, path reconstruction would create parent directory's path instead of actual path at the time of resolution. Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 935 (Directories change mode from 0755 to 0644 automatically) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=935 --- xlators/protocol/server/src/server-resolve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/protocol/server/src/server-resolve.c') diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c index 00f1728c5eb..89c6cf0efa2 100644 --- a/xlators/protocol/server/src/server-resolve.c +++ b/xlators/protocol/server/src/server-resolve.c @@ -110,7 +110,7 @@ resolve_loc_touchup (call_frame_t *frame) loc = state->loc_now; if (!loc->path) { - if (loc->parent) { + if (loc->parent && resolve->bname) { ret = inode_path (loc->parent, resolve->bname, &path); } else if (loc->inode) { ret = inode_path (loc->inode, NULL, &path); -- cgit