summaryrefslogtreecommitdiff
path: root/src/w32.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2022-09-07 15:18:54 +0300
committerEli Zaretskii <eliz@gnu.org>2022-09-07 15:18:54 +0300
commit579eefda36b9a8cd71c9aeff0f32e32d468727a3 (patch)
tree7b5cdc52f3f8858691ec05925351c8302caeae27 /src/w32.h
parentc6c9dfc8670f5698634a8d5853853056ff928974 (diff)
downloademacs-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.h2
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 *,