cluster: RHEL60 - Fix syntax error in code that opens logfile.

rohara rohara at fedoraproject.org
Tue Aug 10 17:05:00 UTC 2010


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=734c1956e16c5afc6ac5f265e9b3ed396f9e4201
Commit:        734c1956e16c5afc6ac5f265e9b3ed396f9e4201
Parent:        dbb67ee051f60b03d91cdf7ddba214c7af2db588
Author:        Ryan O'Hara <rohara at redhat.com>
AuthorDate:    Tue Aug 10 11:55:53 2010 -0500
Committer:     Ryan O'Hara <rohara at redhat.com>
CommitterDate: Tue Aug 10 12:04:47 2010 -0500

Fix syntax error in code that opens logfile.

rhbz#608887

Signed-off-by: Ryan O'Hara <rohara at 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 992a3eb..9ee8917 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");
 }


More information about the cluster-commits mailing list