diff options
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lread.c b/src/lread.c index 855869cd90d..e594a363873 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -1402,8 +1402,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, Lisp_Object *sto | |||
| 1402 | 1402 | ||
| 1403 | encoded_fn = ENCODE_FILE (string); | 1403 | encoded_fn = ENCODE_FILE (string); |
| 1404 | pfn = SSDATA (encoded_fn); | 1404 | pfn = SSDATA (encoded_fn); |
| 1405 | exists = (stat (pfn, &st) >= 0 | 1405 | exists = (stat (pfn, &st) == 0 && ! S_ISDIR (st.st_mode)); |
| 1406 | && (st.st_mode & S_IFMT) != S_IFDIR); | ||
| 1407 | if (exists) | 1406 | if (exists) |
| 1408 | { | 1407 | { |
| 1409 | /* Check that we can access or open it. */ | 1408 | /* Check that we can access or open it. */ |
| @@ -4385,7 +4384,7 @@ to load. See also `load-dangerous-libraries'. */); | |||
| 4385 | 4384 | ||
| 4386 | Qdir_ok = intern_c_string ("dir-ok"); | 4385 | Qdir_ok = intern_c_string ("dir-ok"); |
| 4387 | staticpro (&Qdir_ok); | 4386 | staticpro (&Qdir_ok); |
| 4388 | 4387 | ||
| 4389 | Qdo_after_load_evaluation = intern_c_string ("do-after-load-evaluation"); | 4388 | Qdo_after_load_evaluation = intern_c_string ("do-after-load-evaluation"); |
| 4390 | staticpro (&Qdo_after_load_evaluation) ; | 4389 | staticpro (&Qdo_after_load_evaluation) ; |
| 4391 | 4390 | ||