diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-02-11 20:45:15 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-02-11 20:45:15 +0200 |
commit | 7585967f4707f4540517fca498b9c8683cf683cc (patch) | |
tree | a9b0d9d3979f46967d826d3f749a19cd95168249 /rpmqv.c | |
parent | 9dc19803d5495b598db0edb4b650d672c2a1f024 (diff) | |
download | librpm-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |