diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-02-27 15:48:28 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-02-27 15:48:28 +0000 |
commit | 311d982b6fbcad0cbbc7ca4358a0cd580b16fbc0 (patch) | |
tree | 9fac6a814447866636599c5b52c828f6348ae772 /src/ex_cmds.c | |
parent | 602eb74de6245dcad1ec77e919a7597789ef1c0e (diff) |
updated for version 7.0-202v7.0.202
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 1bb7ba0966..80ac3f98e6 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -1772,7 +1772,8 @@ write_viminfo(file, forceit) */ st_old.st_dev = st_old.st_ino = 0; st_old.st_mode = 0600; - if (mch_stat((char *)fname, &st_old) == 0 && getuid() + if (mch_stat((char *)fname, &st_old) == 0 + && getuid() != ROOT_UID && !(st_old.st_uid == getuid() ? (st_old.st_mode & 0200) : (st_old.st_gid == getgid() |