mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 00:38:56 +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
Notes:
sideshowbarker
2024-07-18 17:18:42 +09:00
Author: https://github.com/metmo
Commit: c906987651
Pull-request: https://github.com/SerenityOS/serenity/pull/7499
Issue: https://github.com/SerenityOS/serenity/issues/7497
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_fd = 0;
|
||||||
int input_flags = O_RDONLY;
|
int input_flags = O_RDONLY;
|
||||||
int output_fd = 1;
|
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 block_size = 512;
|
||||||
size_t count = 0;
|
size_t count = 0;
|
||||||
size_t skip = 0;
|
size_t skip = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue