From f6448465ea06f15e111c9fa2a0215f432f3e29d9 Mon Sep 17 00:00:00 2001
From: Fons Rademakers <Fons.Rademakers@cern.ch>
Date: Fri, 17 Jan 2003 10:35:39 +0000
Subject: [PATCH] big bug in TNetFile, due to mistake in argument parsing could
 not create new files via rootd anymore. Reported by Gerri Ganis.

git-svn-id: http://root.cern.ch/svn/root/trunk@5929 27541ba8-7e3a-0410-8455-c3a389f83636
---
 net/src/TNetFile.cxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/net/src/TNetFile.cxx b/net/src/TNetFile.cxx
index 18210b16c96..4e8d32cad26 100644
--- a/net/src/TNetFile.cxx
+++ b/net/src/TNetFile.cxx
@@ -1,4 +1,4 @@
-// @(#)root/net:$Name:  $:$Id: TNetFile.cxx,v 1.28 2002/12/10 02:19:46 rdm Exp $
+// @(#)root/net:$Name:  $:$Id: TNetFile.cxx,v 1.29 2002/12/10 12:11:31 rdm Exp $
 // Author: Fons Rademakers   14/08/97
 
 /*************************************************************************
@@ -169,10 +169,10 @@ TNetFile::TNetFile(const char *url, Option_t *option, const char *ftitle,
       fOption = "CREATE";
 
    Bool_t create   = (fOption == "CREATE") ? kTRUE : kFALSE;
-          create   = (fOption == "RECREATE") ? kTRUE : kFALSE;
+   Bool_t recreate = (fOption == "RECREATE") ? kTRUE : kFALSE;
    Bool_t update   = (fOption == "UPDATE") ? kTRUE : kFALSE;
    Bool_t read     = (fOption == "READ") ? kTRUE : kFALSE;
-   if (!create && !update && !read) {
+   if (!create && !recreate && !update && !read) {
       read    = kTRUE;
       fOption = "READ";
    }
-- 
GitLab