From: Sung-hun Kim Date: Thu, 1 Sep 2022 05:02:05 +0000 (+0900) Subject: util: resource: Change error code from -EPERM to -EACCES X-Git-Tag: submit/tizen/20220901.084153~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5d308519f733d24c0d9623ee3855b4271d21c5c;p=platform%2Fcore%2Fsystem%2Fpass.git util: resource: Change error code from -EPERM to -EACCES To match Tizen error code, I changed -EPERM to -EACCES. Which corresponds to TIZEN_ERROR_PERMISSION_DENIED. Change-Id: I1d3675435eba319637710c4cef3981398e7ab96a Signed-off-by: Sung-hun Kim --- diff --git a/src/util/resource.c b/src/util/resource.c index 46a8e04..cfb9e94 100644 --- a/src/util/resource.c +++ b/src/util/resource.c @@ -984,7 +984,7 @@ int set_resource_attr_interest(struct resource *resource, u_int64_t interest_mas if (!is_resource_attr_visible(resource, &resource->attrs[i])) { _E("res:name(%s) does not have enough privilege to read the attr:name(%s)", resource->name, resource->attrs[i].name); - ret = -EPERM; + ret = -EACCES; goto err; }