OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f5ef6f
)
Fix a bug in patch I fixed back in 2010 but forgot to apply here.
author
Rob Landley
<rob@landley.net>
Fri, 22 Mar 2013 04:23:49 +0000
(23:23 -0500)
committer
Rob Landley
<rob@landley.net>
Fri, 22 Mar 2013 04:23:49 +0000
(23:23 -0500)
toys/posix/patch.c
patch
|
blob
|
history
diff --git
a/toys/posix/patch.c
b/toys/posix/patch.c
index
12e4b8c
..
bb44348
100644
(file)
--- a/
toys/posix/patch.c
+++ b/
toys/posix/patch.c
@@
-394,7
+394,7
@@
void patch_main(void)
TT.filein = xcreate(name, O_CREAT|O_EXCL|O_RDWR, 0666);
} else {
printf("patching %s\n", name);
- TT.filein = xopen(name, O_RD
WR
);
+ TT.filein = xopen(name, O_RD
ONLY
);
}
TT.fileout = copy_tempfile(TT.filein, name, &TT.tempname);
TT.linenum = 0;