1
0
forked from aniani/vim

updated for version 7.1-153

This commit is contained in:
Bram Moolenaar
2007-11-08 19:49:02 +00:00
parent a443af88a4
commit 6f1924547b
6 changed files with 16 additions and 4 deletions

View File

@@ -1774,7 +1774,8 @@ write_viminfo(file, forceit)
* overwrite a user's viminfo file after a "su root", with a
* viminfo file that the user can't read.
*/
st_old.st_dev = st_old.st_ino = 0;
st_old.st_dev = 0;
st_old.st_ino = 0;
st_old.st_mode = 0600;
if (mch_stat((char *)fname, &st_old) == 0
&& getuid() != ROOT_UID