0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.0.1737: fchown() used when it is not supported

Problem:    fchown() used when it is not supported.
Solution:   Add #ifdef.
This commit is contained in:
Bram Moolenaar
2018-04-19 21:15:27 +02:00
parent 226400830b
commit 02e802b2da
2 changed files with 6 additions and 1 deletions

View File

@@ -712,8 +712,11 @@ readfile(
if (mch_stat((char *)swap_fname, &swap_st) >= 0
&& st.st_gid != swap_st.st_gid
# ifdef HAVE_FCHOWN
&& fchown(curbuf->b_ml.ml_mfp->mf_fd, -1, st.st_gid)
== -1)
# endif
== -1
)
swap_mode &= 0600;
}