Summary: | when createing a tar archive of a directory from the command line ark crashes | ||
---|---|---|---|
Product: | [Applications] ark | Reporter: | geiseri |
Component: | general | Assignee: | Helio Castro <helio> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
geiseri
2003-06-02 15:36:50 UTC
I'm not sure if this is the reason for the crash, but "ark --help" from KDE 3.2.0-0+cvs20030531+orth prints: ark [Qt-Optionen] [KDE-Optionen] [Optionen] [directory] [files] [archive] --add-to Add 'files' to 'archive'. Quit when finished. 'archive' will be created if it does not exist. that means you need to specify the arguments in different order: ark --add-to dcopwidgets dcopwidgets.tar.gz It should, however, not crash either way. Yes I confirmed when I got the arguments correct it worked. It seems we are missing a sanity check for stupid users here 8) Cheers -ian reinhart geiser Subject: kdeutils/ark CVS commit by robbers: don't crash when an 'archive' is in fact a directory CCMAIL:59255-done@bugs.kde.org M +1 -1 tar.cpp 1.21 --- kdeutils/ark/tar.cpp #1.20:1.21 @@ -150,5 +150,5 @@ void TarArch::updateArch() this, SLOT(updateFinished(KProcess *)) ); - if (kp->start(KProcess::NotifyOnExit, flag) == false) + if ( !fd || kp->start(KProcess::NotifyOnExit, flag) == false) { KMessageBox::error(0, i18n("Trouble writing to the archive...")); |