diff options
author | Anders Nordby <anders@FreeBSD.org> | 2002-10-11 00:03:19 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2002-10-11 00:03:19 +0000 |
commit | 6e17e6bb4ce6f9332aa8ccdd11ae185f9f31b0b7 (patch) | |
tree | f9f2ae0c72e0c11f8196fbf7ec6bfa7473cf8ec3 /net/pxe/files | |
parent | 53fa9783e9a36e1385b109375a5f5d255cd0c090 (diff) | |
download | ports-6e17e6bb4ce6f9332aa8ccdd11ae185f9f31b0b7.tar.gz ports-6e17e6bb4ce6f9332aa8ccdd11ae185f9f31b0b7.zip |
Notes
Diffstat (limited to 'net/pxe/files')
-rw-r--r-- | net/pxe/files/patch-logfile.cc | 17 |
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); + } + + |