Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 701256 Details for
Bug 914733
Do not fail hardly when 'compress' is unable to give sufficient compress ratio (was: Unable to create tar.Z achieves.)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Warn only when this issue occurs.
proposal.patch (text/plain), 1.94 KB, created by
Pavel Raiskup
on 2013-02-22 16:31:47 UTC
(
hide
)
Description:
Warn only when this issue occurs.
Filename:
MIME Type:
Creator:
Pavel Raiskup
Created:
2013-02-22 16:31:47 UTC
Size:
1.94 KB
patch
obsolete
>diff --git a/acinclude.m4 b/acinclude.m4 >index d48c881..8620760 100644 >--- a/acinclude.m4 >+++ b/acinclude.m4 >@@ -52,3 +52,22 @@ AC_DEFUN([TAR_HEADERS_ATTR_XATTR_H], > ) > fi > ]) >+ >+# Allow maintainer to disable compress's exit-2-value hack >+AC_DEFUN([TAR_COMPRESS_EXIT_HACK],[ >+ AC_ARG_WITH( >+ [compress-exit-hack], >+ AS_HELP_STRING( >+ [--without-compress-exit-hack], >+ [fail when -Z (compress) compressor exists with non-error value 2]), >+ [with_compress_exit_hack=no] >+ ) >+ if test "x$with_compress_exit_hack" != xno; then >+ AC_DEFINE_UNQUOTED( >+ HAVE_COMPRESS_EXIT_HACK, >+ "$tar_cv_compressor_compress", >+ define to name of compress utility when we don't want to fail hardly >+ if this utility exits with exit code 2. It should just mean that the >+ compressed file is bigger than original file) >+ fi >+]) >diff --git a/configure.ac b/configure.ac >index 3303c53..b0a4f14 100644 >--- a/configure.ac >+++ b/configure.ac >@@ -253,6 +253,9 @@ TAR_COMPR_PROGRAM(lzma) > TAR_COMPR_PROGRAM(lzop) > TAR_COMPR_PROGRAM(xz) > >+# must be called after TAR_COMPR_PROGRAM(compress) call >+TAR_COMPRESS_EXIT_HACK >+ > AC_MSG_CHECKING(for default archive format) > > AC_ARG_VAR([DEFAULT_ARCHIVE_FORMAT], >diff --git a/src/system.c b/src/system.c >index e1fd263..454d01e 100644 >--- a/src/system.c >+++ b/src/system.c >@@ -189,6 +189,13 @@ sys_wait_for_child (pid_t child_pid, bool eof) > if (!(!eof && sig == SIGPIPE)) > FATAL_ERROR ((0, 0, _("Child died with signal %d"), sig)); > } >+#ifdef HAVE_COMPRESS_EXIT_HACK >+ if (!strcmp (use_compress_program_option, HAVE_COMPRESS_EXIT_HACK) >+ && WEXITSTATUS (wait_status) == 2) >+ WARN ((0, 0, _("%lu: Child says that compressed output is bigger " >+ "then original data."), >+ (unsigned long) child_pid)); >+#endif > else if (WEXITSTATUS (wait_status) != 0) > FATAL_ERROR ((0, 0, _("Child returned status %d"), > WEXITSTATUS (wait_status)));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 914733
: 701256