Fix up EPRM patch -- 3rd try lucky

This commit is contained in:
Richard Hughes 2023-07-19 16:52:31 +01:00
parent bdde047c9f
commit bcd5f09e86

View File

@ -37,7 +37,7 @@ index 67be6a6af..aaefd5b0d 100644
+ */
ret = close_range (lowfd, G_MAXUINT, 0);
- if (ret == 0 || errno != ENOSYS)
+ if (ret == 0 || errno != ENOSYS || errno == EPERM)
+ if (ret == 0 || !(errno == ENOSYS || errno == EPERM))
return ret;
#endif /* HAVE_CLOSE_RANGE */