The following commit has been merged in the master branch:
commit 03b7c00daf4dbf20898dd6c214a4a399d4e2e002
Author: Guillem Jover <[email protected]>
Date: Sat Nov 7 00:55:39 2009 +0100
libdpkg: If PROCNOERR in subproc_check() return the status code
If the caller asked for no errors, it does not make sense to lose the
status code on return. So we return it instead of -1.
diff --git a/lib/dpkg/subproc.c b/lib/dpkg/subproc.c
index c1bc0a9..8485106 100644
--- a/lib/dpkg/subproc.c
+++ b/lib/dpkg/subproc.c
@@ -80,7 +80,7 @@ subproc_check(int status, const char *desc, int flags)
if (!n)
return 0;
if (flags & PROCNOERR)
- return -1;
+ return n;
if (flags & PROCWARN)
warning(_("%s returned error exit status %d"),
desc, n);
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]