diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-08 13:56:12 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-08 15:21:06 +0100 |
commit | 1f6c624a1ab66782fd157f9baa9c9e5a6a1bb76b (patch) | |
tree | 8adf3b6370a02493cebccd588a80a5873922c45a | |
parent | 532f240f244cddd57023e5fa0d5bad35b4682301 (diff) | |
download | serenity-1f6c624a1ab66782fd157f9baa9c9e5a6a1bb76b.zip |
truncate: Unbreak this utility after ftruncate() syscall fixes
-rw-r--r-- | Userland/truncate.cpp | 2 |
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; |