summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-02-11 20:45:15 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-02-11 20:45:15 +0200
commit7585967f4707f4540517fca498b9c8683cf683cc (patch)
treea9b0d9d3979f46967d826d3f749a19cd95168249 /rpmqv.c
parent9dc19803d5495b598db0edb4b650d672c2a1f024 (diff)
downloadlibrpm-tizen-7585967f4707f4540517fca498b9c8683cf683cc.tar.gz
librpm-tizen-7585967f4707f4540517fca498b9c8683cf683cc.tar.bz2
librpm-tizen-7585967f4707f4540517fca498b9c8683cf683cc.zip
Play nice with xargs
- xargs considers exit status 255 special, avoid it. The exit status is unrealiable anyway so 254 vs 255 shouldn't matter Patch from Michal Marek
Diffstat (limited to 'rpmqv.c')
-rw-r--r--rpmqv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 3baa58bf4..1db5f1e78 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -879,8 +879,8 @@ exit:
muntrace(); /* Trace malloc only if MALLOC_TRACE=mtrace-output-file. */
#endif
- /* XXX don't overflow single byte exit status */
- if (ec > 255) ec = 255;
+ /* XXX Avoid exit status overflow. Status 255 is special to xargs(1) */
+ if (ec > 254) ec = 254;
return ec;
}