1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

truncate: Unbreak this utility after ftruncate() syscall fixes

This commit is contained in:
Andreas Kling 2020-01-08 13:56:12 +01:00
parent 532f240f24
commit 1f6c624a1a

View file

@ -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;