[Israel.pm] File permissions and File::Copy
dovalle at smlink.com
Mon May 31 07:25:23 PDT 2004
What about File::NCopy?
From: Offer Kaye [mailto:oferk at oren.co.il]
Sent: Monday, May 31, 2004 16:15
To: perl at perl.org.il
Subject: [Israel.pm] File permissions and File::Copy
I'm trying to use File::Copy's "copy" function to copy an executable
(permissions = 755 = "rwxr--r--"). OS is Linux, BTW.
The problem is that File::Copy does not preserve the executable
of the file. I think the problem is that the function opens the target
Perl's "open" function. The relevant code line (I think) from the
open($to_h,"> $to\0") or goto fail_open2;
(this is line number 130 in File::Copy version 2.05).
What can I do to make File::Copy preserve the file permissions when
Is this a bug or a feature? :-)
And no, I don't want to use the shell's copy...
Thanks in advance,
Perl mailing list
Perl at perl.org.il
More information about the Perl