diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-19 21:15:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-19 21:15:27 +0200 |
commit | 02e802b2da9e25b5824185976b163691b5bbd558 (patch) | |
tree | 20ac2d40549183d9964f7394f1d49a6d36451507 | |
parent | 226400830b470774bf5a552e1af10706b609720c (diff) |
patch 8.0.1737: fchown() used when it is not supportedv8.0.1737
Problem: fchown() used when it is not supported.
Solution: Add #ifdef.
-rw-r--r-- | src/fileio.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 4f35cb9659..f02925bed5 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -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; } diff --git a/src/version.c b/src/version.c index aff6c6d6ad..a7720a76a8 100644 --- a/src/version.c +++ b/src/version.c @@ -763,6 +763,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1737, +/**/ 1736, /**/ 1735, |