Commit 63e7864d authored by Emmanuele Bassi's avatar Emmanuele Bassi 👣
Browse files

Merge branch 'backport-2180-close_range-glib-2-68' into 'glib-2-68'

Backport !2180 “correctly use 3 parameters for close_range” to glib-2-68

See merge request !2183
parents d3dc7a87 6e59d21b
Pipeline #295733 failed with stages
in 8 minutes and 25 seconds
......@@ -1494,7 +1494,7 @@ safe_closefrom (int lowfd)
*
* Handle ENOSYS in case it’s supported in libc but not the kernel; if so,
* fall back to safe_fdwalk(). */
if (close_range (lowfd, G_MAXUINT) != 0 && errno == ENOSYS)
if (close_range (lowfd, G_MAXUINT, 0) != 0 && errno == ENOSYS)
#endif /* HAVE_CLOSE_RANGE */
(void) safe_fdwalk (close_func, GINT_TO_POINTER (lowfd));
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment