Gitweb: http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=commit... Commit: 7525b2d647f91794cbe3fe6e54fcba7ba4d03f57 Parent: dbd626380161c464a7b6813fbe125da712678f4b Author: Ryan O'Hara rohara@redhat.com AuthorDate: Mon Jun 28 15:59:27 2010 -0500 Committer: Fabio M. Di Nitto fdinitto@redhat.com CommitterDate: Mon Jul 5 12:42:12 2010 +0200
Fix open flags so that logfile won't be truncated each time we open it.
rhbz#608887
Signed-off-by: Ryan O'Hara rohara@redhat.com --- fence/agents/scsi/fence_scsi.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fence/agents/scsi/fence_scsi.pl b/fence/agents/scsi/fence_scsi.pl index 59259cf..992a3eb 100644 --- a/fence/agents/scsi/fence_scsi.pl +++ b/fence/agents/scsi/fence_scsi.pl @@ -583,7 +583,7 @@ else { ## and redirect STDOUT and STDERR to the logfile. ## if (defined $opt_f) { - open (LOG, ">$opt_f") or die "$!\n"; + open (LOG, >">$opt_f") or die "$!\n"; open (STDOUT, ">&LOG"); open (STDERR, ">&LOG"); }
cluster-commits@lists.fedorahosted.org