Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
patch 8.0.1737: fchown() used when it is not supported
Problem:    fchown() used when it is not supported.
Solution:   Add #ifdef.
  • Loading branch information
brammool committed Apr 19, 2018
1 parent 2264008 commit 02e802b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fileio.c
Expand Up @@ -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;
}

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -762,6 +762,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1737,
/**/
1736,
/**/
Expand Down

0 comments on commit 02e802b

Please sign in to comment.