[PATCH 1/2] libnl3: Add ESRCH to compat error translation
- From: Alfredo Matos <alfredo matos caixamagica pt>
- To: networkmanager-list gnome org
- Subject: [PATCH 1/2] libnl3: Add ESRCH to compat error translation
- Date: Thu, 04 Aug 2011 10:26:10 +0100
---
src/nm-netlink-compat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/nm-netlink-compat.c b/src/nm-netlink-compat.c
index ca2fff3..e91a1ff 100644
--- a/src/nm-netlink-compat.c
+++ b/src/nm-netlink-compat.c
@@ -95,7 +95,7 @@ nl_compat_error (int err)
if (err == EEXIST)
err = NLE_EXIST;
- else if (err == ENOENT)
+ else if (err == ENOENT || err == ESRCH)
err = NLE_OBJ_NOTFOUND;
else if (err == ERANGE)
err = NLE_RANGE;
--
1.7.5.4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]