diff options
author | Pavel Platto <hinidu@gmail.com> | 2014-07-14 00:04:59 +0300 |
---|---|---|
committer | Pavel Platto <hinidu@gmail.com> | 2014-08-13 09:13:58 +0300 |
commit | 94f3d30306ebe3856dc98b6afc4d29728ec3f3af (patch) | |
tree | 40ab2d5af4018ee79dc6808b9736fd9eb0d4bb89 /src/nvim/ex_cmds.c | |
parent | 563f38c317908a94893727db501e325f29710edb (diff) | |
download | rneovim-94f3d30306ebe3856dc98b6afc4d29728ec3f3af.tar.gz rneovim-94f3d30306ebe3856dc98b6afc4d29728ec3f3af.tar.bz2 rneovim-94f3d30306ebe3856dc98b6afc4d29728ec3f3af.zip |
os_fchown: impl and remove HAVE_FCHOWN
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 180a786ed6..0a26026d7b 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1606,13 +1606,13 @@ void write_viminfo(char_u *file, int forceit) fp_out = mch_fopen((char *)tempname, WRITEBIN); } -#if defined(UNIX) && defined(HAVE_FCHOWN) +#ifdef UNIX /* * Make sure the owner can read/write it. This only works for * root. */ if (fp_out != NULL) { - fchown(fileno(fp_out), old_info.stat.st_uid, old_info.stat.st_gid); + os_fchown(fileno(fp_out), old_info.stat.st_uid, old_info.stat.st_gid); } #endif } |