public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f8dded
)
tar: truncate existing files.
author
Brett Gordon
<beretta42@gmail.com>
Sun, 8 Apr 2018 16:42:12 +0000
(12:42 -0400)
committer
Brett Gordon
<beretta42@gmail.com>
Sun, 8 Apr 2018 16:42:12 +0000
(12:42 -0400)
Applications/util/tar.c
patch
|
blob
|
history
diff --git
a/Applications/util/tar.c
b/Applications/util/tar.c
index
68151dc
..
558d5f4
100644
(file)
--- a/
Applications/util/tar.c
+++ b/
Applications/util/tar.c
@@
-576,7
+576,7
@@
static void extract(char *argv[])
continue;
}
/* open output file */
- outfile = open(h.name, O_CREAT | O_WRONLY);
+ outfile = open(h.name, O_CREAT | O_WRONLY
| O_TRUNC
);
if (outfile < 0) {
pname();
break;