Files
DirectAdmin-1.62.4/services/custombuild/patches/fpm-quota-chown.patch
2025-11-12 20:19:03 +07:00

13 lines
469 B
Diff

--- sapi/fpm/fpm/fpm_unix.c.orig 2019-12-05 17:02:37.818844398 -0700
+++ sapi/fpm/fpm/fpm_unix.c 2019-12-05 17:20:39.578769107 -0700
@@ -235,7 +235,8 @@
if (wp->socket_uid != -1 || wp->socket_gid != -1) {
if (0 > chown(path, wp->socket_uid, wp->socket_gid)) {
zlog(ZLOG_SYSERROR, "[pool %s] failed to chown() the socket '%s'", wp->config->name, wp->config->listen_address);
- return -1;
+ chown(path, 0, wp->socket_gid);
+ return 0;
}
}
return 0;