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

rohara rohara at fedoraproject.org
Tue Aug 10 16:57:36 UTC 2010


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=66fde5c0404772facee6d935e69530603a577f97
Commit:        66fde5c0404772facee6d935e69530603a577f97
Parent:        9a5de317a9bf9f9dfc57c6b98ed58a988978c94d
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 11:55:53 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