projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa43a63
)
(wipefile): Always use binary mode. Clearly this
author
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 11 Jul 2005 18:30:02 +0000
(18:30 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Mon, 11 Jul 2005 18:30:02 +0000
(18:30 +0000)
never worked right on DOS!
src/shred.c
patch
|
blob
|
history
diff --git
a/src/shred.c
b/src/shred.c
index
8a1d114
..
ebe6e06
100644
(file)
--- a/
src/shred.c
+++ b/
src/shred.c
@@
-1442,11
+1442,11
@@
wipefile (char *name, char const *qname,
bool ok;
int fd;
- fd = open (name, O_WRONLY | O_NOCTTY);
+ fd = open (name, O_WRONLY | O_NOCTTY
| O_BINARY
);
if (fd < 0
&& (errno == EACCES && flags->force)
&& chmod (name, S_IWUSR) == 0)
- fd = open (name, O_WRONLY | O_NOCTTY);
+ fd = open (name, O_WRONLY | O_NOCTTY
| O_BINARY
);
if (fd < 0)
{
error (0, errno, _("%s: failed to open for writing"), qname);