Bug 742474 - abrt-cli uses wrong return codes
Summary: abrt-cli uses wrong return codes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: abrt
Version: 6.2
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jiri Moskovcak
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks: 750914
TreeView+ depends on / blocked
 
Reported: 2011-09-30 09:26 UTC by Richard Marko
Modified: 2016-02-01 02:21 UTC (History)
8 users (show)

Fixed In Version: abrt-2.0.4-13.el6, libreport-2.0.5-18.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 12:22:03 UTC
Target Upstream Version:


Attachments (Terms of Use)
fix exit codes (2.82 KB, patch)
2011-10-12 15:33 UTC, Nikola Pajkovsky
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1598 0 normal SHIPPED_LIVE abrt and libreport bug fix and enhancement update 2011-12-06 00:51:16 UTC

Description Richard Marko 2011-09-30 09:26:31 UTC
Running 'abrt-cli --help' (Expected 0, got 1)
Running 'abrt-cli --help 2>&1 | grep 'Usage: abrt-cli'' (Expected 0, got 1)

Running 'abrt-cli report FAKEDIR' (Expected 1, got 0)
Running 'abrt-cli rm FAKEDIR' (Expected 1, got 0)

Version:
abrt-cli-2.0.4-11.el6.x86_64

Works fine in abrt-cli-2.0.4.981-1.fc16.x86_64

Comment 2 Suzanne Logcher 2011-10-06 18:43:03 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
               
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 Nikola Pajkovsky 2011-10-06 21:40:06 UTC
we already have it in git

Author: Nikola Pajkovsky <npajkovs>
Date:   Fri Aug 26 12:49:25 2011 +0200

    abrt-cli: fix exit codes in cmds rm and info
    
    Signed-off-by: Nikola Pajkovsky <npajkovs>
    (cherry picked from commit 5a7172e832103a943055c55864a2035076b57073)

Comment 4 Jiri Moskovcak 2011-10-12 15:33:15 UTC
Can we get an exception for this?

Comment 5 Nikola Pajkovsky 2011-10-12 15:33:45 UTC
Created attachment 527732 [details]
fix exit codes

Comment 11 Nikola Pajkovsky 2011-10-21 10:47:52 UTC
build will be ready asap

commit 7fb3b526e56fe08c8481bf8d29e15f99bd766172
Author: Nikola Pajkovsky <npajkovs>
Date:   Thu Oct 20 18:10:46 2011 +0200

    report-cli -r FAKE-DIR return 1 instead of 0
    
    Signed-off-by: Nikola Pajkovsky <npajkovs>

Comment 15 errata-xmlrpc 2011-12-06 12:22:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1598.html


Note You need to log in before you can comment on or make changes to this bug.