[PATCH 1/2] libnl3: Add ESRCH to compat error translation



---
 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]