1
0
forked from aniani/vim

patch 7.4.1009

Problem:    There are still #ifdefs for ARCHIE.
Solution:   Remove references to ARCHIE, the code was removed in Vim 5.
This commit is contained in:
Bram Moolenaar
2015-12-31 19:53:21 +01:00
parent e7fedb6ebe
commit 53076830fe
8 changed files with 16 additions and 23 deletions

View File

@@ -3510,7 +3510,7 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
/*
* Get information about original file (if there is one).
*/
#if defined(UNIX) && !defined(ARCHIE)
#if defined(UNIX)
st_old.st_dev = 0;
st_old.st_ino = 0;
perm = -1;
@@ -4126,7 +4126,7 @@ buf_write(buf, fname, sfname, start, end, eap, append, forceit,
}
}
#if defined(UNIX) && !defined(ARCHIE)
#if defined(UNIX)
/* When using ":w!" and the file was read-only: make it writable */
if (forceit && perm >= 0 && !(perm & 0200) && st_old.st_uid == getuid()
&& vim_strchr(p_cpo, CPO_FWRITE) == NULL)