Commit 459f4042 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(init_dosfns): When setting `__opendir_flags' value,

override the bits recorded when dumping.
parent 6e6f5d9e
......@@ -297,14 +297,18 @@ init_dosfns ()
#if __DJGPP__ >= 2
/* Without this, we never see hidden files. */
__opendir_flags |= __OPENDIR_FIND_HIDDEN;
/* Under LFN, preserve the case of files as recorded in the directory. */
/* Without this, we never see hidden files.
Don't OR it with the previous value, so the value recorded at dump
time, possibly with `preserve-case' flags set, won't get through. */
__opendir_flags = __OPENDIR_FIND_HIDDEN;
#if __DJGPP_MINOR__ == 0
/* Under LFN, preserve the case of files as recorded in the directory
(in DJGPP 2.01 and later this is automagically done by the library). */
if (!NILP (Fmsdos_long_file_names ()))
__opendir_flags |= __OPENDIR_PRESERVE_CASE;
#endif
#endif /* __DJGPP_MINOR__ == 0 */
#endif /* __DJGPP__ >= 2 */
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment