Mercurial > emacs
changeset 16335:6cf0a8b5c895
(init_dosfns): When setting `__opendir_flags' value,
override the bits recorded when dumping.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 25 Sep 1996 22:39:43 +0000 |
parents | 5c4b76c66de2 |
children | 91846d76268d |
files | src/dosfns.c |
diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dosfns.c Wed Sep 25 22:37:27 1996 +0000 +++ b/src/dosfns.c Wed Sep 25 22:39:43 1996 +0000 @@ -297,14 +297,18 @@ #if __DJGPP__ >= 2 - /* Without this, we never see hidden files. */ - __opendir_flags |= __OPENDIR_FIND_HIDDEN; + /* 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; - /* Under LFN, preserve the case of files as recorded in the directory. */ +#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 */ } /*