summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-08 13:56:12 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-08 15:21:06 +0100
commit1f6c624a1ab66782fd157f9baa9c9e5a6a1bb76b (patch)
tree8adf3b6370a02493cebccd588a80a5873922c45a
parent532f240f244cddd57023e5fa0d5bad35b4682301 (diff)
downloadserenity-1f6c624a1ab66782fd157f9baa9c9e5a6a1bb76b.zip
truncate: Unbreak this utility after ftruncate() syscall fixes
-rw-r--r--Userland/truncate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/truncate.cpp b/Userland/truncate.cpp
index f4d2d20912..7d6643e54f 100644
--- a/Userland/truncate.cpp
+++ b/Userland/truncate.cpp
@@ -69,7 +69,7 @@ int main(int argc, char** argv)
auto name = args.get_single_values()[0];
- int fd = open(name.characters(), O_CREAT, 0666);
+ int fd = open(name.characters(), O_RDWR | O_CREAT, 0666);
if (fd < 0) {
perror("open");
return -1;