From: Adrian Szyndela Date: Thu, 30 May 2019 10:37:53 +0000 (+0200) Subject: bugfix: LOGE messed with errno X-Git-Tag: accepted/tizen/unified/20190627.014814~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F207225%2F4;p=platform%2Fcore%2Fsystem%2Flibdbuspolicy.git bugfix: LOGE messed with errno Change-Id: I626c8e4e809791e5a0050a3096b392336f85cc60 --- diff --git a/src/kdbus.cpp b/src/kdbus.cpp index ce1f960..32e3257 100644 --- a/src/kdbus.cpp +++ b/src/kdbus.cpp @@ -169,10 +169,10 @@ int KdbusConnection::get_conn_info(const char *bus_name, set_item_str(cmd->items, bus_name, l+1, KDBUS_ITEM_NAME); } if (ioctl(fd, KDBUS_CMD_CONN_INFO, cmd) < 0) { - LOGE("Failed KDBUS_CMD_CONN_INFO: %m\n"); if (errno == ENXIO || errno == ESRCH) return DBUSPOLICY_RESULT_DEST_NOT_AVAILABLE; + LOGE("Failed KDBUS_CMD_CONN_INFO: %m\n"); return DBUSPOLICY_RESULT_KDBUS_ERROR; }