27dd599
diff -ur root-5.26.00d.orig/tutorials/tree/cernbuild.C root-5.26.00d/tutorials/tree/cernbuild.C
27dd599
--- root-5.26.00d.orig/tutorials/tree/cernbuild.C	2010-08-24 13:29:47.000000000 +0200
27dd599
+++ root-5.26.00d/tutorials/tree/cernbuild.C	2010-08-29 10:20:56.069801363 +0200
27dd599
@@ -18,6 +18,7 @@
27dd599
 
27dd599
    //The input file cern.dat is a copy of the CERN staff data base
27dd599
    //from 1988
27dd599
+   TString filename = "cernstaff.root";
27dd599
    TString dir = gSystem->UnixPathName(gInterpreter->GetCurrentMacroName());
27dd599
    dir.ReplaceAll("cernbuild.C","");
27dd599
    dir.ReplaceAll("/./","/");
27dd599
@@ -70,7 +71,10 @@
27dd599
    tree->Write();
27dd599
 
27dd599
    fclose(fp);
27dd599
-   if (get) return hfile;
27dd599
    delete hfile;
27dd599
+   if (get) {
27dd599
+     hfile = TFile::Open(filename);
27dd599
+     return hfile;
27dd599
+   }
27dd599
    return 0;
27dd599
 }