SHA256
1
0
forked from pool/cpio
cpio/cpio-close_files_after_copy.patch

25 lines
460 B
Diff

Index: src/copyin.c
===================================================================
--- src/copyin.c.orig 2010-08-10 16:45:19.000000000 +0200
+++ src/copyin.c 2010-08-10 16:45:19.000000000 +0200
@@ -1485,6 +1485,19 @@ process_copy_in ()
apply_delayed_set_stat ();
+ if (tty_in)
+ {
+ fclose(tty_in);
+ }
+ if (tty_out)
+ {
+ fclose(tty_out);
+ }
+ if (rename_in)
+ {
+ fclose(rename_in);
+ }
+
if (append_flag)
return;