From 21b5bdcb354bc113473347af5e4995fae2285b58 Mon Sep 17 00:00:00 2001 From: Peng Haitao Date: Fri, 12 Apr 2013 16:58:49 +0800 Subject: setcifsacl.c: fix a bug of goto setcifsacl_facenum_ret setcifsacl_facenum_ret: is called only if attrlen is equal to -1. Signed-off-by: Peng Haitao --- setcifsacl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setcifsacl.c b/setcifsacl.c index 67dd29c..4b38459 100644 --- a/setcifsacl.c +++ b/setcifsacl.c @@ -822,9 +822,10 @@ cifsacl: goto setcifsacl_action_ret; attrlen = setxattr(filename, ATTRNAME, ntsdptr, bufsize, 0); - if (attrlen == -1) + if (attrlen == -1) { printf("%s: setxattr error: %s\n", __func__, strerror(errno)); - goto setcifsacl_facenum_ret; + goto setcifsacl_facenum_ret; + } exit_plugin(plugin_handle); return 0; -- cgit v1.2.3