Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fb8edc0b
Commit
fb8edc0b
authored
Jul 09, 2009
by
Eli Zaretskii
Browse files
(stat): Treat UNC file names as residing on remote drives. (Bug#3542)
parent
28528402
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
src/ChangeLog
src/ChangeLog
+5
-0
src/w32.c
src/w32.c
+5
-3
No files found.
src/ChangeLog
View file @
fb8edc0b
2009-07-09 Eli Zaretskii <eliz@gnu.org>
* w32.c (stat): Treat UNC file names as residing on remote
drives. (Bug#3542)
2009-07-09 Kenichi Handa <handa@m17n.org>
* fontset.c (fontset_find_font): Fix previous change.
...
...
src/w32.c
View file @
fb8edc0b
...
...
@@ -3347,11 +3347,13 @@ stat (const char * path, struct stat * buf)
}
}
/* GetDriveType needs the root directory of NAME's drive. */
if (!(strlen (name) >= 2 && IS_DEVICE_SEP (name[1])))
devtype = GetDriveType (NULL); /* use root of current diectory */
if (IS_DIRECTORY_SEP (name[0]) && IS_DIRECTORY_SEP (name[1]))
devtype = DRIVE_REMOTE; /* assume UNC name is remote */
else if (!(strlen (name) >= 2 && IS_DEVICE_SEP (name[1])))
devtype = GetDriveType (NULL); /* use root of current drive */
else
{
/* GetDriveType needs the root directory of NAME's drive. */
strncpy (drive_root, name, 3);
drive_root[3] = '\0';
devtype = GetDriveType (drive_root);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment