Thanks for reporting. Please find attached the patch.

Regards,
Sergey

Index: src/copypass.c
===================================================================
RCS file: /cvsroot/cpio/cpio/src/copypass.c,v
retrieving revision 1.11
diff -p -u -r1.11 copypass.c
--- src/copypass.c      27 Sep 2006 09:28:50 -0000      1.11
+++ src/copypass.c      15 Nov 2006 07:49:59 -0000
@@ -197,7 +197,7 @@ process_copy_pass ()
              if (close (out_file_des) < 0)
                close_error (output_name.ds_string);
 
-             set_copypass_perms (input_name.ds_string, &in_file_stat);
+             set_copypass_perms (output_name.ds_string, &in_file_stat);
 
              if (reset_time_flag)
                 {


_______________________________________________
Bug-cpio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-cpio

Reply via email to