From: Christophe Courtaut Date: Mon, 1 Jul 2013 12:57:17 +0000 (+0200) Subject: rgw: Fix return value for swift user not found X-Git-Tag: v0.67-rc1~171^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F385%2Fhead;p=ceph.git rgw: Fix return value for swift user not found http://tracker.ceph.com/issues/1779 fixes #1779 Adjust the return value from rgw_get_user_info_by_swift call in RGW_SWIFT_Auth_Get::execute() to have the correct return code in response. --- diff --git a/src/rgw/rgw_swift_auth.cc b/src/rgw/rgw_swift_auth.cc index b0be5d459387..d0987e103335 100644 --- a/src/rgw/rgw_swift_auth.cc +++ b/src/rgw/rgw_swift_auth.cc @@ -181,7 +181,10 @@ void RGW_SWIFT_Auth_Get::execute() user_str = user; if ((ret = rgw_get_user_info_by_swift(store, user_str, info)) < 0) + { + ret = -EACCES; goto done; + } siter = info.swift_keys.find(user_str); if (siter == info.swift_keys.end()) {