libnl3: Add ESRCH to compat error translation

This commit is contained in:
Alfredo Matos 2011-08-04 10:26:10 +01:00 committed by Dan Williams
parent 7addf3009a
commit 790c16c9f2

View file

@ -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;