Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sschapiro:openstack:upstream
fence-agents
fence_scsi_do_not_truncate_log_file.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fence_scsi_do_not_truncate_log_file.patch of Package fence-agents
From 3d36ee013e11043800214f400fae6a6bebd2af41 Mon Sep 17 00:00:00 2001 From: Ryan O'Hara <rohara@redhat.com> Date: Mon, 28 Jun 2010 15:59:27 -0500 Subject: [PATCH] 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"); } -- 1.6.2.5
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor