Commit 748ed13a authored by Timothy Stack's avatar Timothy Stack
Browse files

Only chmod the destination file if it exists.

parent f239ba2b
......@@ -72,8 +72,8 @@ if ($dst =~ /^(($pr|$FSDIR_PROJ|$gr|$FSDIR_GROUPS)\/[-\w\/.]+)$/) {
system("cp $src $dst");
if ($dst) {
if (-e $dst) {
chmod(0644, $dst);
exit $?
exit $?;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment