From c70f4b3af619bcdd08d57147a4ed582bdad98084 Mon Sep 17 00:00:00 2001 From: Ryan Ding Date: Wed, 24 Aug 2016 00:41:13 +0800 Subject: protocol/server: readlink rsp xdr will fail while readlink got an error set gfs3_readlink_rsp.path with an empty string while error happen, to make xdr_gfs3_readlink_rsp happy. otherwise the original errno will be lost, and return an rpc internal errno instead. Change-Id: I36655b66df8b9f164e5bd21eb17244722c2f5a52 BUG: 1369530 Signed-off-by: Ryan Ding Reviewed-on: http://review.gluster.org/15299 Smoke: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Tested-by: Pranith Kumar Karampuri NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- xlators/protocol/server/src/server-common.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'xlators/protocol/server/src/server-common.c') diff --git a/xlators/protocol/server/src/server-common.c b/xlators/protocol/server/src/server-common.c index fd6749a4df7..9a023aaa49e 100644 --- a/xlators/protocol/server/src/server-common.c +++ b/xlators/protocol/server/src/server-common.c @@ -21,9 +21,6 @@ server_post_readlink (gfs3_readlink_rsp *rsp, struct iatt *stbuf, { gf_stat_from_iatt (&rsp->buf, stbuf); rsp->path = (char *)buf; - - if (!rsp->path) - rsp->path = ""; } void -- cgit