bug-cpio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cpio] Destination directory patch


From: P J P
Subject: [Bug-cpio] Destination directory patch
Date: Wed, 21 Jul 2010 23:30:44 +0530 (IST)

   Hi,

Please have a look at the patch below; It adds a new -D <DIR> option to
cpio-2.11, where <DIR> is a destination directory for copy-in mode.

See: http://pjp.dgplug.org/tools/cpio-2.11-destination-dir.patch


Files changed:

cpio-2.11/src/copyin.c: new function: prefix_directory_name(*file_hdr)
cpio-2.11/src/extern.h: new constant: int destination_dir_flag; 
cpio-2.11/src/global.c: new constant: int destination_dir_flag = false;
cpio-2.11/src/main.c: new option -D <DIR>


Now the command works well,

 $ rpm2cpio bash-3.2-24.el5.x86_64.rpm | ./cpio -imdD bash


I hope you find it useful. Do let me know if it needs any more changes.

Thank you.
---
Regards
    -Prasad
PS: Please don't send me html/attachment/Fwd mails





reply via email to

[Prev in Thread] Current Thread [Next in Thread]