0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.4.136

Problem:    MS-Windows: When saving a file with a UNC path the file becomes
            read-only.
Solution:   Don't mix up Win32 attributes and Unix attributes. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2014-01-10 13:05:20 +01:00
parent 438f67a004
commit b1cb35f785
3 changed files with 16 additions and 3 deletions

View File

@@ -2890,9 +2890,6 @@ mch_getperm(char_u *name)
struct stat st;
int n;
if (name[0] == '\\' && name[1] == '\\')
/* UNC path */
return (long)win32_getattrs(name);
n = mch_stat(name, &st);
return n == 0 ? (long)st.st_mode : -1L;
}