mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
Utilites: Make dd truncate output file
Make dd truncate the output file as Gnu-dd does by default. Fixes #7497
This commit is contained in:
parent
fae7c436e6
commit
c906987651
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ int main(int argc, char** argv)
|
|||
int input_fd = 0;
|
||||
int input_flags = O_RDONLY;
|
||||
int output_fd = 1;
|
||||
int output_flags = O_CREAT | O_WRONLY;
|
||||
int output_flags = O_CREAT | O_WRONLY | O_TRUNC;
|
||||
size_t block_size = 512;
|
||||
size_t count = 0;
|
||||
size_t skip = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue