From: Ken Brown Date: Thu, 23 Jul 2020 17:44:22 +0000 (-0400) Subject: fchmodat: Use /proc on Cygwin X-Git-Tag: v1.0~3873 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=bbd68fb634d544d6e1f32debb291aac4433d84f7;p=gnulib.git fchmodat: Use /proc on Cygwin * lib/fchmodat.c (fchmodat): Use /proc on Cygwin. --- diff --git a/ChangeLog b/ChangeLog index 8cac948ad2..9d6051f768 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2020-07-23 Ken Brown + + * lib/fchmodat.c (fchmodat): Use /proc on Cygwin. + 2020-07-21 Bruno Haible aligned-malloc: Optionally use aligned_alloc. diff --git a/lib/fchmodat.c b/lib/fchmodat.c index 8950168608..eee0a1c56e 100644 --- a/lib/fchmodat.c +++ b/lib/fchmodat.c @@ -98,7 +98,7 @@ fchmodat (int dir, char const *file, mode_t mode, int flags) return -1; } -# if defined __linux__ || defined __ANDROID__ +# if defined __linux__ || defined __ANDROID__ || defined __CYGWIN__ static char const fmt[] = "/proc/self/fd/%d"; char buf[sizeof fmt - sizeof "%d" + INT_BUFSIZE_BOUND (int)]; sprintf (buf, fmt, fd);