SHA256
1
0
forked from pool/cpio
cpio/cpio-2.10-close_files_after_copy.patch
OBS User autobuild f746cd70ad Accepting request 24243 from Archiving
Copy from Archiving/cpio based on submit request 24243 from user mseben

OBS-URL: https://build.opensuse.org/request/show/24243
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cpio?expand=0&rev=21
2009-11-16 09:40:21 +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;