aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/vi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/editors/vi.c b/editors/vi.c
index c791a32e1..a0a046272 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -4999,7 +4999,11 @@ int vi_main(int argc, char **argv)
4999 4999
5000 // .exrc must belong to and only be writable by user 5000 // .exrc must belong to and only be writable by user
5001 if (stat(exrc, &st) == 0) { 5001 if (stat(exrc, &st) == 0) {
5002# if !ENABLE_PLATFORM_MINGW32
5002 if ((st.st_mode & (S_IWGRP|S_IWOTH)) == 0 5003 if ((st.st_mode & (S_IWGRP|S_IWOTH)) == 0
5004# else
5005 if (1
5006# endif
5003 && st.st_uid == getuid() 5007 && st.st_uid == getuid()
5004 ) { 5008 ) {
5005 cmds = xmalloc_open_read_close(exrc, NULL); 5009 cmds = xmalloc_open_read_close(exrc, NULL);