aboutsummaryrefslogtreecommitdiff
path: root/net/pxe/files/patch-logfile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/pxe/files/patch-logfile.cc')
-rw-r--r--net/pxe/files/patch-logfile.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/net/pxe/files/patch-logfile.cc b/net/pxe/files/patch-logfile.cc
new file mode 100644
index 000000000000..5eed667bbc70
--- /dev/null
+++ b/net/pxe/files/patch-logfile.cc
@@ -0,0 +1,17 @@
+--- logfile.cc.orig Wed Oct 2 22:41:50 2002
++++ logfile.cc Wed Oct 2 22:42:09 2002
+@@ -58,12 +58,13 @@
+ {
+ /* open the file */
+ umask(077);
+- logfile = new std::fstream(filename, std::ios::out|std::ios::app, 0644);
++ logfile = new std::fstream(filename, std::ios::out|std::ios::app);
+ if(logfile == NULL)
+ {
+ std::cerr << "Error: LogFile::Open:open(): " << strerror(errno) <<"\n";
+ exit(-1);
+ }
++ chmod(filename, 0644);
+ }
+
+