From 7fa2a88a28578dce36d88436776c05aee65165fd Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Tue, 28 Sep 2010 23:04:24 +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: Vijay Bellur 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') diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c index 8a390689f10..65d7badfae8 100644 --- a/xlators/protocol/server/src/server-resolve.c +++ b/xlators/protocol/server/src/server-resolve.c @@ -108,7 +108,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