summaryrefslogtreecommitdiff
path: root/src/dosfns.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-09-25 22:39:43 +0000
committerRichard M. Stallman <rms@gnu.org>1996-09-25 22:39:43 +0000
commit459f404248455603403220029955828b4072055c (patch)
tree1728388c35040c6d91c22592e9c74d8fac4a2465 /src/dosfns.c
parent6e6f5d9e7bc05546869e47c52768d96726b7eb6c (diff)
downloademacs-459f404248455603403220029955828b4072055c.tar.gz
emacs-459f404248455603403220029955828b4072055c.tar.bz2
emacs-459f404248455603403220029955828b4072055c.zip
(init_dosfns): When setting `__opendir_flags' value,
override the bits recorded when dumping.
Diffstat (limited to 'src/dosfns.c')
-rw-r--r--src/dosfns.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/dosfns.c b/src/dosfns.c
index 9fc6f2ab4f9..69254ef7089 100644
--- a/src/dosfns.c
+++ b/src/dosfns.c
@@ -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 */
}
/*