diff options
| author | Eli Zaretskii | 2008-05-10 07:56:42 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-05-10 07:56:42 +0000 |
| commit | fbc4a2f453b86bf2281e00650ac08372149c9458 (patch) | |
| tree | a7ff759e186b8478de5068e9abcc4cd815c78f54 /src | |
| parent | 47b82151d2a4fb6e928839e7113d57ec4143234b (diff) | |
| download | emacs-fbc4a2f453b86bf2281e00650ac08372149c9458.tar.gz emacs-fbc4a2f453b86bf2281e00650ac08372149c9458.zip | |
(stat): Fix test of Vw32_get_true_file_attributes against the value returned
by GetDriveType.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -2491,9 +2491,9 @@ stat (const char * path, struct stat * buf) | |||
| 2491 | } | 2491 | } |
| 2492 | } | 2492 | } |
| 2493 | 2493 | ||
| 2494 | if (!NILP (Vw32_get_true_file_attributes) | 2494 | if (!(NILP (Vw32_get_true_file_attributes) |
| 2495 | && !(EQ (Vw32_get_true_file_attributes, Qlocal) && | 2495 | || (EQ (Vw32_get_true_file_attributes, Qlocal) && |
| 2496 | GetDriveType (name) == DRIVE_FIXED) | 2496 | GetDriveType (name) != DRIVE_FIXED)) |
| 2497 | /* No access rights required to get info. */ | 2497 | /* No access rights required to get info. */ |
| 2498 | && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING, | 2498 | && (fh = CreateFile (name, 0, 0, NULL, OPEN_EXISTING, |
| 2499 | FILE_FLAG_BACKUP_SEMANTICS, NULL)) | 2499 | FILE_FLAG_BACKUP_SEMANTICS, NULL)) |