SHA256
1
0
forked from pool/cpio
cpio/cpio-2.10-close_files_after_copy.patch
Michal Seben a5eace9925 Accepting request 25718 from home:jengelh:branches:Archiving
Copy from home:jengelh:branches:Archiving/cpio via accept of submit request 25718 revision 2.
Request was accepted with message:
thanks

OBS-URL: https://build.opensuse.org/request/show/25718
OBS-URL: https://build.opensuse.org/package/show/Archiving/cpio?expand=0&rev=13
2009-12-08 10:21:50 +00:00

25 lines
416 B
Diff

Index: src/copyin.c
===================================================================
--- src/copyin.c.orig
+++ src/copyin.c
@@ -1565,6 +1565,19 @@ process_copy_in ()
if (dot_flag)
fputc ('\n', stderr);
+ if (tty_in)
+ {
+ fclose(tty_in);
+ }
+ if (tty_out)
+ {
+ fclose(tty_out);
+ }
+ if (rename_in)
+ {
+ fclose(rename_in);
+ }
+
if (append_flag)
return;