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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user