Bug 726097 - `report-cli --delete $DIR' won't remove dump dir
Summary: `report-cli --delete $DIR' won't remove dump dir
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libreport
Version: 6.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Nikola Pajkovsky
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-27 14:19 UTC by Michal Nowak
Modified: 2014-02-02 22:15 UTC (History)
4 users (show)

Fixed In Version: libreport-2.0.5-6.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 12:14:22 UTC
Target Upstream Version:


Attachments (Terms of Use)


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 Michal Nowak 2011-07-27 14:19:38 UTC
Description of problem:

`report-cli --delete $DIR' is not removing dump dir.

[newman@dhcp-25-35 abrt-should-return-rating-0-on-fail]$ sudo report-cli --delete /var/spool/abrt/ccpp-1310991931-5029/
Usage: report-cli [-vsp] -l[f] [-D BASE_DIR]...
or: report-cli [-vsp] -i[f] DUMP_DIR
or: report-cli [-vsp] -L[PREFIX] [DUMP_DIR]
or: report-cli [-vsp] -e EVENT DUMP_DIR
or: report-cli [-vsp] -a[y] DUMP_DIR
or: report-cli [-vsp] -r[y|o] DUMP_DIR
or: report-cli [-vsp] -d DUMP_DIR

    -l, --list                  List not yet reported problems, or all with -f
    -D BASE_DIR                 Directory to list problems from (default: -D $HOME/.abrt/spool -D /var/spool/abrt)
    -i, --info                  Print information about DUMP_DIR (detailed with -f)
    -L[PREFIX]                  List possible events [which start with PREFIX]
    -e EVENT                    Run EVENT on DUMP_DIR
    -a, --analyze               Run analyze event(s) on DUMP_DIR
    -r, --report                Analyze and report problem data in DUMP_DIR
    -d, --delete                Remove DUMP_DIR
    -V, --version               Display version and exit
    -f, --full                  Full listing
    -y, --always                Noninteractive: don't ask questions, assume 'yes'
    -o, --report-only           With -r: do not run analyzers, run only reporters
    -v, --verbose               Be verbose
    -s                          Log to syslog
    -p                          Add program names to log

[newman@dhcp-25-35 abrt-should-return-rating-0-on-fail]$ echo $?
1

[newman@dhcp-25-35 abrt-should-return-rating-0-on-fail]$ ll /var/spool/abrt/ccpp-1310991931-5029/
total 1600
-rw-r-----. 1 abrt newman       4 Jul 18 14:25 analyzer
-rw-r-----. 1 abrt newman       6 Jul 18 14:25 architecture
-rw-r-----. 1 abrt newman    2331 Jul 27 16:00 backtrace
-rw-r-----. 1 abrt newman       1 Jul 27 16:00 backtrace_rating
[...]

Version-Release number of selected component (if applicable):

abrt-2.0.4-1.el6.x86_64
libreport-2.0.5-1.el6.x86_64
btparser-0.13-1.el6.x86_64

How reproducible:

always

Comment 3 Nikola Pajkovsky 2011-08-04 14:50:24 UTC
I see. Fix for that is not yet in cvs. If you need to delete dump dir use:

$ abrt-cli rm DUMP_DIR [DUMP_DIR...].


Usage:
  report-cli [-vsp] -r[y|o|d] DUMP_DIR

-d, --delete                Remove DUMP_DIR after reporting

Comment 7 errata-xmlrpc 2011-12-06 12:14:22 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.