diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/w32.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fec0b8ec0cd..e64812b43a8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-07-09 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * w32.c (stat): Treat UNC file names as residing on remote | ||
| 4 | drives. (Bug#3542) | ||
| 5 | |||
| 1 | 2009-07-09 Kenichi Handa <handa@m17n.org> | 6 | 2009-07-09 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * fontset.c (fontset_find_font): Fix previous change. | 8 | * fontset.c (fontset_find_font): Fix previous change. |
| @@ -3347,11 +3347,13 @@ stat (const char * path, struct stat * buf) | |||
| 3347 | } | 3347 | } |
| 3348 | } | 3348 | } |
| 3349 | 3349 | ||
| 3350 | /* GetDriveType needs the root directory of NAME's drive. */ | 3350 | if (IS_DIRECTORY_SEP (name[0]) && IS_DIRECTORY_SEP (name[1])) |
| 3351 | if (!(strlen (name) >= 2 && IS_DEVICE_SEP (name[1]))) | 3351 | devtype = DRIVE_REMOTE; /* assume UNC name is remote */ |
| 3352 | devtype = GetDriveType (NULL); /* use root of current diectory */ | 3352 | else if (!(strlen (name) >= 2 && IS_DEVICE_SEP (name[1]))) |
| 3353 | devtype = GetDriveType (NULL); /* use root of current drive */ | ||
| 3353 | else | 3354 | else |
| 3354 | { | 3355 | { |
| 3356 | /* GetDriveType needs the root directory of NAME's drive. */ | ||
| 3355 | strncpy (drive_root, name, 3); | 3357 | strncpy (drive_root, name, 3); |
| 3356 | drive_root[3] = '\0'; | 3358 | drive_root[3] = '\0'; |
| 3357 | devtype = GetDriveType (drive_root); | 3359 | devtype = GetDriveType (drive_root); |