diff options
author | Anand Avati <avati@gluster.com> | 2010-05-26 09:29:36 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-05-27 02:00:53 -0700 |
commit | 0d34328ba04c967192b31d60dfeb6cd164ae7119 (patch) | |
tree | fce4c025c338a85a2c2b6b8a5525a0535af13141 /xlators/protocol | |
parent | 6d9b11dba63d86c48450aa956281114962289ef5 (diff) |
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 <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 935 (Directories change mode from 0755 to 0644 automatically)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=935
Diffstat (limited to 'xlators/protocol')
-rw-r--r-- | xlators/protocol/server/src/server-resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c index 2eb95e6a491..fc022be3540 100644 --- a/xlators/protocol/server/src/server-resolve.c +++ b/xlators/protocol/server/src/server-resolve.c @@ -109,7 +109,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); |