in reply to Re: copying files from cgi perl script is modifying target file permissions
in thread copying files from cgi perl script is modifying target file permissions

taint% man cp 1
CP(1) FreeBSD General Commands Manual CP(1) ... -f For each existing destination pathname, remove it and create a new file, without prompting for confirmation regardless of its permis- sions. (The -f option overrides any previous -i or -n options.)

I this this option may have led to your problem.

use perl::always;
my $perl_version( 5.12.4 );
print $perl_version;
  • Comment on Re^2: copying files from cgi perl script is modifying target file permissions
  • Download Code

Replies are listed 'Best First'.
Re^3: copying files from cgi perl script is modifying target file permissions
by afoken (Chancellor) on Jun 21, 2012 at 19:54 UTC
    taint% man cp 1

    Nice. But "cp-f" ne "cp", and "cp-f" ne "cp -f".

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)