(doexecute) [_WIN32]: Open the exec file in text mode.
The exec file contains the user commands created by text editor.
This commit is contained in:
parent
1580b1f734
commit
6304f3b482
1 changed files with 0 additions and 4 deletions
|
@ -250,11 +250,7 @@ doexecute(char *p, FILE *auxfi)
|
|||
free(tag);
|
||||
return;
|
||||
}
|
||||
#if !defined(_WIN32)
|
||||
if ((fd = open(p, O_RDONLY, 0)) < 0) {
|
||||
#else
|
||||
if ((fd = open(p, O_RDONLY | O_BINARY, 0)) < 0) {
|
||||
#endif
|
||||
fprintf(stderr, "Can't open execute file\n");
|
||||
perror(p);
|
||||
free(tag);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue