From 542476b4bcf248c02ad087381c03c49c2b4c8014 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 27 Sep 2010 02:06:26 +0000 Subject: access-control: handle a case of wrong error handling in rename_src_stat_cbk(), we were checking the return value as '-1', but the function can return '-EFAULT' (ie, -14 in few cases). Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 1691 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1691 --- xlators/features/access-control/src/access-control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features/access-control/src') diff --git a/xlators/features/access-control/src/access-control.c b/xlators/features/access-control/src/access-control.c index b659a013309..7612266680f 100644 --- a/xlators/features/access-control/src/access-control.c +++ b/xlators/features/access-control/src/access-control.c @@ -1010,7 +1010,7 @@ ac_rename_src_stat_cbk (call_frame_t *frame, void *cookie, xlator_t *this, } op_ret = ac_parent_loc_fill (&parentloc, &stub->args.rename.new); - if (op_ret == -1) { + if (op_ret < 0) { op_errno = -EFAULT; goto out; } -- cgit