summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-21 06:37:25 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-21 06:37:25 +0000
commitf2d530bd76f53cf3b2a8a583aaa1862deda4fcca (patch)
tree0da2db699509f8979915894f39cbe8c6eae33584
parent6ecdfced9370e46f5446788dbe0c302b637fad6a (diff)
Added a mode of 600 to the files opened for writing
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@974 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/Form.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 8400201f..43fa3b00 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -640,6 +640,7 @@ sub parse_template {
if ($self->{OUT}) {
open(OUT, $self->{printmode}, "$self->{OUT}") or $self->error("$self->{OUT} : $!");
+ chmod(0600, "$self->{OUT}");
} else {
open(OUT, ">-") or $self->error("STDOUT : $!");
@@ -978,6 +979,7 @@ sub parse_template {
$self->cleanup;
$self->error("$self->{OUT} : $err");
}
+ chmod (0600, "$self->{OUT}");
} else {