aboutsummaryrefslogtreecommitdiff
path: root/src/utility/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utility/io.h')
-rw-r--r--src/utility/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utility/io.h b/src/utility/io.h
index ed1f542..32d6ecb 100644
--- a/src/utility/io.h
+++ b/src/utility/io.h
@@ -13,7 +13,7 @@ namespace utility {
class FileDescriptorGuard {
public:
FileDescriptorGuard(const std::string& path) {
- this->fd_ = open(path.c_str(), O_CREAT | O_WRONLY | O_APPEND);
+ this->fd_ = open(path.c_str(), O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
if ( !this->fd_ ) {
this->fd_ = STDERR_FILENO;