To: vim_dev@googlegroups.com Subject: Patch 8.0.1737 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1737 Problem: fchown() used when it is not supported. Solution: Add #ifdef. Files: src/fileio.c *** ../vim-8.0.1736/src/fileio.c 2018-04-08 13:07:18.742034802 +0200 --- src/fileio.c 2018-04-19 21:10:26.438281314 +0200 *************** *** 712,719 **** if (mch_stat((char *)swap_fname, &swap_st) >= 0 && st.st_gid != swap_st.st_gid && fchown(curbuf->b_ml.ml_mfp->mf_fd, -1, st.st_gid) ! == -1) swap_mode &= 0600; } --- 712,722 ---- 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) ! # endif ! == -1 ! ) swap_mode &= 0600; } *** ../vim-8.0.1736/src/version.c 2018-04-19 20:39:34.463728396 +0200 --- src/version.c 2018-04-19 21:11:31.761810361 +0200 *************** *** 764,765 **** --- 764,767 ---- { /* Add new patch number below this line */ + /**/ + 1737, /**/ -- The term "free software" is defined by Richard M. Stallman as being software that isn't necessarily for free. Confusing? Let's call it "Stallman software" then! -- Bram Moolenaar /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///