diff options
| author | Paul Eggert | 2016-04-14 09:47:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-04-14 09:48:36 -0700 |
| commit | c2ce5476dcde1ab9a7651a4c8a7b29a398b435ce (patch) | |
| tree | 5efd7c2437eb94e2878c312c59b7ba4e5d8c75c3 /src/filelock.c | |
| parent | 177d40de6bddf26c28f065927cd439281e56b325 (diff) | |
| download | emacs-c2ce5476dcde1ab9a7651a4c8a7b29a398b435ce.tar.gz emacs-c2ce5476dcde1ab9a7651a4c8a7b29a398b435ce.zip | |
Simplify use of O_BINARY
* src/callproc.c (call_process):
* src/fileio.c (write_region):
* src/filelock.c (read_lock_data):
* src/image.c (x_find_image_fd):
* src/lread.c (openp):
* src/sysdep.c (init_random, emacs_fopen):
* src/unexcw.c (unexec):
Omit unnecessary use of O_BINARY, since emacs_open now arranges
that for us.
Diffstat (limited to 'src/filelock.c')
| -rw-r--r-- | src/filelock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filelock.c b/src/filelock.c index c58484a639b..6db6daa3bba 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -485,7 +485,7 @@ read_lock_data (char *lfname, char lfinfo[MAX_LFINFO + 1]) | |||
| 485 | while ((nbytes = readlinkat (AT_FDCWD, lfname, lfinfo, MAX_LFINFO + 1)) < 0 | 485 | while ((nbytes = readlinkat (AT_FDCWD, lfname, lfinfo, MAX_LFINFO + 1)) < 0 |
| 486 | && errno == EINVAL) | 486 | && errno == EINVAL) |
| 487 | { | 487 | { |
| 488 | int fd = emacs_open (lfname, O_RDONLY | O_BINARY | O_NOFOLLOW, 0); | 488 | int fd = emacs_open (lfname, O_RDONLY | O_NOFOLLOW, 0); |
| 489 | if (0 <= fd) | 489 | if (0 <= fd) |
| 490 | { | 490 | { |
| 491 | /* Use read, not emacs_read, since FD isn't unwind-protected. */ | 491 | /* Use read, not emacs_read, since FD isn't unwind-protected. */ |