Skip to content

Commit accbfd5

Browse files
IgorTodorovskiIBMkhwilliamson
authored andcommitted
File/Copy.pm: Copy file tags on z/OS
1 parent 45a5ce3 commit accbfd5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/File/Copy.pm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Additions copyright 1996 by Charles Bailey. Permission is granted
66
# to distribute the revised code under the same terms as Perl itself.
77

8-
package File::Copy 2.42;
8+
package File::Copy 2.43;
99

1010
use v5.40;
1111
no warnings 'newline';
@@ -165,6 +165,11 @@ sub copy {
165165
$closeto = 1;
166166
}
167167

168+
# Copy file tags on os390
169+
if ($^O eq 'os390') {
170+
ZOS::Filespec::copytags_fd(fileno($from_h), fileno($to_h));
171+
}
172+
168173
$! = 0;
169174
for (;;) {
170175
my ($r, $w, $t);

0 commit comments

Comments
 (0)