diff options
author | Stefan Hoffmann <stefan991@gmail.com> | 2014-08-27 19:14:44 +0200 |
---|---|---|
committer | Stefan Hoffmann <stefan991@gmail.com> | 2014-08-31 15:37:55 +0200 |
commit | 5d074a0aa6b307a11ee572db6bf48ca17c3a8a23 (patch) | |
tree | 3dd3a2b9e8e229d772bf25286f238d92aba7ca16 /src/nvim/undo.c | |
parent | 9ee1c3604c0cc8a3ec1bac32fb33e9c0d0887155 (diff) | |
download | rneovim-5d074a0aa6b307a11ee572db6bf48ca17c3a8a23.tar.gz rneovim-5d074a0aa6b307a11ee572db6bf48ca17c3a8a23.tar.bz2 rneovim-5d074a0aa6b307a11ee572db6bf48ca17c3a8a23.zip |
fileinfo: rename os_get_file_info{,_link,_fd}
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 8c7b5b38e9..d7a691aa83 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -1116,8 +1116,8 @@ void u_write_undo(char_u *name, int forceit, buf_T *buf, char_u *hash) */ FileInfo file_info_old; FileInfo file_info_new; - if (os_get_file_info((char *)buf->b_ffname, &file_info_old) - && os_get_file_info((char *)file_name, &file_info_new) + if (os_fileinfo((char *)buf->b_ffname, &file_info_old) + && os_fileinfo((char *)file_name, &file_info_new) && file_info_old.stat.st_gid != file_info_new.stat.st_gid && os_fchown(fd, -1, file_info_old.stat.st_gid) != 0) { os_setperm(file_name, (perm & 0707) | ((perm & 07) << 3)); @@ -1249,8 +1249,8 @@ void u_read_undo(char_u *name, char_u *hash, char_u *orig_name) * owner of the text file or equal to the current user. */ FileInfo file_info_orig; FileInfo file_info_undo; - if (os_get_file_info((char *)orig_name, &file_info_orig) - && os_get_file_info((char *)file_name, &file_info_undo) + if (os_fileinfo((char *)orig_name, &file_info_orig) + && os_fileinfo((char *)file_name, &file_info_undo) && file_info_orig.stat.st_uid != file_info_undo.stat.st_uid && file_info_undo.stat.st_uid != getuid()) { if (p_verbose > 0) { |