From 62b2be7fbedc13ed40ed8f1327dded532b90ad55 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 14 Nov 2015 23:32:35 +0100 Subject: Fix rename tracking and enable logfile creation --- src/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/io.h') diff --git a/src/io.h b/src/io.h index 87778ec..c36a5b0 100644 --- a/src/io.h +++ b/src/io.h @@ -13,7 +13,7 @@ namespace io { class FileDescriptorGuard { public: FileDescriptorGuard(const std::string& path) { - this->fd = open(path.c_str(), O_WRONLY | O_APPEND); + this->fd = open(path.c_str(), O_CREAT | O_WRONLY | O_APPEND); if ( !this->fd ) { this->fd = STDERR_FILENO; -- cgit v1.2.3