Gitweb:
http://git.fedorahosted.org/git/fence-agents.git?p=fence-agents.git;a=com...
Commit: cca0e05d60dbdc4e7fd7389b8d0f6635038201e6
Parent: c1880d1153aaad96e206178fc7e6e32b720ef4fd
Author: Ryan O'Hara <rohara(a)redhat.com>
AuthorDate: Tue Mar 15 15:13:04 2011 -0500
Committer: Ryan O'Hara <rohara(a)redhat.com>
CommitterDate: Tue Mar 15 15:13:04 2011 -0500
fence_scsi: fix typo when opening logfile
There is a typo in the code that opens the logfile. The logfile should
be opened in append mode. This was fixed in RHEL6 quite some time ago,
but for whatever reason didn't get pushed into upstream.
Signed-off-by: Ryan O'Hara <rohara(a)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 befb398..14b0784 100644
--- a/fence/agents/scsi/fence_scsi.pl
+++ b/fence/agents/scsi/fence_scsi.pl
@@ -765,7 +765,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");
}