diff options
| author | Richard M. Stallman | 1996-09-25 22:39:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-09-25 22:39:43 +0000 |
| commit | 459f404248455603403220029955828b4072055c (patch) | |
| tree | 1728388c35040c6d91c22592e9c74d8fac4a2465 /src | |
| parent | 6e6f5d9e7bc05546869e47c52768d96726b7eb6c (diff) | |
| download | emacs-459f404248455603403220029955828b4072055c.tar.gz emacs-459f404248455603403220029955828b4072055c.zip | |
(init_dosfns): When setting `__opendir_flags' value,
override the bits recorded when dumping.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dosfns.c | 16 |
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 () | |||
| 297 | 297 | ||
| 298 | #if __DJGPP__ >= 2 | 298 | #if __DJGPP__ >= 2 |
| 299 | 299 | ||
| 300 | /* Without this, we never see hidden files. */ | 300 | /* Without this, we never see hidden files. |
| 301 | __opendir_flags |= __OPENDIR_FIND_HIDDEN; | 301 | Don't OR it with the previous value, so the value recorded at dump |
| 302 | 302 | time, possibly with `preserve-case' flags set, won't get through. */ | |
| 303 | /* Under LFN, preserve the case of files as recorded in the directory. */ | 303 | __opendir_flags = __OPENDIR_FIND_HIDDEN; |
| 304 | |||
| 305 | #if __DJGPP_MINOR__ == 0 | ||
| 306 | /* Under LFN, preserve the case of files as recorded in the directory | ||
| 307 | (in DJGPP 2.01 and later this is automagically done by the library). */ | ||
| 304 | if (!NILP (Fmsdos_long_file_names ())) | 308 | if (!NILP (Fmsdos_long_file_names ())) |
| 305 | __opendir_flags |= __OPENDIR_PRESERVE_CASE; | 309 | __opendir_flags |= __OPENDIR_PRESERVE_CASE; |
| 306 | 310 | #endif /* __DJGPP_MINOR__ == 0 */ | |
| 307 | #endif | 311 | #endif /* __DJGPP__ >= 2 */ |
| 308 | } | 312 | } |
| 309 | 313 | ||
| 310 | /* | 314 | /* |