commit | 311d982b6fbcad0cbbc7ca4358a0cd580b16fbc0 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Feb 27 15:48:28 2007 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Feb 27 15:48:28 2007 +0000 |
tree | 9fac6a814447866636599c5b52c828f6348ae772 | |
parent | 602eb74de6245dcad1ec77e919a7597789ef1c0e [diff] [blame] |
updated for version 7.0-202
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 1bb7ba0..80ac3f9 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c
@@ -1772,7 +1772,8 @@ */ 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()