mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:07:34 +00:00
truncate: Unbreak this utility after ftruncate() syscall fixes
This commit is contained in:
parent
532f240f24
commit
1f6c624a1a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue