diff options
author | Eli Zaretskii <eliz@gnu.org> | 2022-09-07 15:18:54 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-09-07 15:18:54 +0300 |
commit | 579eefda36b9a8cd71c9aeff0f32e32d468727a3 (patch) | |
tree | 7b5cdc52f3f8858691ec05925351c8302caeae27 /src/w32.h | |
parent | c6c9dfc8670f5698634a8d5853853056ff928974 (diff) | |
download | emacs-579eefda36b9a8cd71c9aeff0f32e32d468727a3.tar.gz |
Don't follow symlinks in w32notify file watches
* src/w32notify.c (add_watch): On filesystems that support
symlinks, don't follow symlinks. (Bug#57536)
* src/w32.c (symlinks_supported): New function.
* src/w32.h (symlinks_supported): Add prototype.
Diffstat (limited to 'src/w32.h')
-rw-r--r-- | src/w32.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/w32.h b/src/w32.h index dc91c595c43..b914aa9bafa 100644 --- a/src/w32.h +++ b/src/w32.h @@ -228,6 +228,8 @@ extern int sys_link (const char *, const char *); extern int openat (int, const char *, int, int); extern int fchmodat (int, char const *, mode_t, int); extern int lchmod (char const *, mode_t); +extern bool symlinks_supported (const char *); + /* Return total and free memory info. */ extern int w32_memory_info (unsigned long long *, unsigned long long *, |