Bug 742474

Summary: abrt-cli uses wrong return codes
Product: Red Hat Enterprise Linux 6 Reporter: Richard Marko <rmarko>
Component: abrtAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: low Docs Contact:
Priority: low    
Version: 6.2CC: ddumas, dfediuck, jberan, kklic, mnowak, nobody+abrt-devel-list, npajkovs, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: abrt-2.0.4-13.el6, libreport-2.0.5-18.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 12:22:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 750914    
Attachments:
Description Flags
fix exit codes none

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