diff options
| author | Thierry Volpiatto | 2019-11-21 21:01:53 +0100 |
|---|---|---|
| committer | Thierry Volpiatto | 2019-11-21 21:01:53 +0100 |
| commit | 86d8d9589370e8786c2cb245dad8527494009ac2 (patch) | |
| tree | 7cee88add34b97cc12396528263db85490f025b2 /src/kqueue.c | |
| parent | 5a62c4b49ca1ac45d576f55d266750b7d1d6668a (diff) | |
| parent | 6c9c45bfabaa06bd604c95e194102143b87f700e (diff) | |
| download | emacs-86d8d9589370e8786c2cb245dad8527494009ac2.tar.gz emacs-86d8d9589370e8786c2cb245dad8527494009ac2.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'src/kqueue.c')
| -rw-r--r-- | src/kqueue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kqueue.c b/src/kqueue.c index 76d7fc1ecbd..1383d7d3654 100644 --- a/src/kqueue.c +++ b/src/kqueue.c | |||
| @@ -414,7 +414,7 @@ only when the upper directory of the renamed file is watched. */) | |||
| 414 | } | 414 | } |
| 415 | 415 | ||
| 416 | /* Open file. */ | 416 | /* Open file. */ |
| 417 | file = ENCODE_FILE (file); | 417 | Lisp_Object encoded_file = ENCODE_FILE (file); |
| 418 | oflags = O_NONBLOCK; | 418 | oflags = O_NONBLOCK; |
| 419 | #if O_EVTONLY | 419 | #if O_EVTONLY |
| 420 | oflags |= O_EVTONLY; | 420 | oflags |= O_EVTONLY; |
| @@ -426,7 +426,7 @@ only when the upper directory of the renamed file is watched. */) | |||
| 426 | #else | 426 | #else |
| 427 | oflags |= O_NOFOLLOW; | 427 | oflags |= O_NOFOLLOW; |
| 428 | #endif | 428 | #endif |
| 429 | fd = emacs_open (SSDATA (file), oflags, 0); | 429 | fd = emacs_open (SSDATA (encoded_file), oflags, 0); |
| 430 | if (fd == -1) | 430 | if (fd == -1) |
| 431 | report_file_error ("File cannot be opened", file); | 431 | report_file_error ("File cannot be opened", file); |
| 432 | 432 | ||