Bug 6376 - broken -v option
broken -v option
Product: Red Hat Linux
Classification: Retired
Component: cpio (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: bero
: 7889 9545 10026 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 1999-10-26 04:18 EDT by Marco Colombo
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-12-17 13:59:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Marco Colombo 1999-10-26 04:18:16 EDT
The -v option is ignored when stdout is redirected:
on RHL60:
% echo / | cpio -ov  > /dev/null
1 block
% echo / | cpio -ov -O  /dev/null
1 block

on RHL61:
# echo / | cpio -ov > /dev/null
1 block
# echo / | cpio -ov -O /dev/null
1 block

Please note the missing '/'. This happens also with pipes,
and breaks my backup scripts, BTW.
rpm -qf `which cpio` returns:
cpio-2.4.2-13 on RHL61 and
cpio-2.4.2-12 on RHL60.
I've tried both bash and tcsh, so i don't think it's a shell
Comment 1 Steve Smith 1999-12-15 14:15:59 EST
Patch cpio-2.4.2-stdout.patch changes copyout.c to write verbose messages (-v)
to stdout instead of stderr.  Not only do you not see these messages when stdout
is redirected, but the output cpio file is corrupted (because the messages are
now part of the cpio file)!  If I rebuild cpio from the sources with all but
this patch applied, it works as expected.
Comment 2 Jeff Johnson 1999-12-17 13:59:59 EST
Fixed (by reverting the #3358 stdout patch) in cpio-2.4.2-14.
Comment 3 Jeff Johnson 1999-12-19 12:41:59 EST
*** Bug 7889 has been marked as a duplicate of this bug. ***
Comment 4 Jeff Johnson 2000-02-21 05:39:59 EST
*** Bug 9545 has been marked as a duplicate of this bug. ***
Comment 5 Frank Elsner 2000-02-23 05:56:59 EST
Why has the fix of this serios bug not found its way into the Errata ?
Comment 6 Jeff Johnson 2000-03-07 08:54:59 EST
*** Bug 10026 has been marked as a duplicate of this bug. ***

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