From 697be62c5f2b86e8ad93dfcaa0df07890c24d989 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 31 Aug 2015 17:48:26 +0300 Subject: Make file-accessible-directory-p reliable on MS-Windows * src/w32.c (w32_accessible_directory_p): New function. * src/w32.h (w32_accessible_directory_p): Add prototype. * src/fileio.c (file_accessible_directory_p) [WINDOWSNT]: Call w32_accessible_directory_p to test a directory for accessibility by the current user. (Bug#21346) (Ffile_accessible_directory_p): Remove the w32 specific caveat from the doc string. --- src/w32.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/w32.h') diff --git a/src/w32.h b/src/w32.h index 338cb06b193..2c711502593 100644 --- a/src/w32.h +++ b/src/w32.h @@ -195,6 +195,7 @@ extern int filename_to_utf16 (const char *, wchar_t *); extern int codepage_for_filenames (CPINFO *); extern Lisp_Object ansi_encode_filename (Lisp_Object); extern int w32_copy_file (const char *, const char *, int, int, int); +extern int w32_accessible_directory_p (const char *, ptrdiff_t); extern BOOL init_winsock (int load_now); extern void srandom (int); -- cgit v1.2.1