X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd_proto.c;h=baf3eb63459a92209a278d42b638ad10cb52cbba;hp=09faeb2ae3f7ed5c5a773186ae0a32fa9b077151;hb=8c9322c7237a245e445c1ffac696660b78a0e0ff;hpb=766d49876f8f877f4846c16864e7f73b5a3917f7 diff --git a/ubusd_proto.c b/ubusd_proto.c index 09faeb2..baf3eb6 100644 --- a/ubusd_proto.c +++ b/ubusd_proto.c @@ -257,7 +257,7 @@ static int ubusd_handle_invoke(struct ubus_client *cl, struct ubus_msg_buf *ub, method = blob_data(attr[UBUS_ATTR_METHOD]); if (ubusd_acl_check(cl, obj->path.key, method, UBUS_ACL_ACCESS)) - return UBUS_STATUS_NOT_FOUND; + return UBUS_STATUS_PERMISSION_DENIED; if (!obj->client) return obj->recv_msg(cl, ub, method, attr[UBUS_ATTR_DATA]);