aboutsummaryrefslogtreecommitdiff
path: root/net/pxe/files
diff options
context:
space:
mode:
authorAnders Nordby <anders@FreeBSD.org>2002-10-11 00:03:19 +0000
committerAnders Nordby <anders@FreeBSD.org>2002-10-11 00:03:19 +0000
commit6e17e6bb4ce6f9332aa8ccdd11ae185f9f31b0b7 (patch)
treef9f2ae0c72e0c11f8196fbf7ec6bfa7473cf8ec3 /net/pxe/files
parent53fa9783e9a36e1385b109375a5f5d255cd0c090 (diff)
downloadports-6e17e6bb4ce6f9332aa8ccdd11ae185f9f31b0b7.tar.gz
ports-6e17e6bb4ce6f9332aa8ccdd11ae185f9f31b0b7.zip
Notes
Diffstat (limited to 'net/pxe/files')
-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);
+ }
+
+