diff --git a/core/master_utils.c b/core/master_utils.c index 159e2a74..99ef0790 100644 --- a/core/master_utils.c +++ b/core/master_utils.c @@ -1719,6 +1719,7 @@ void uwsgi_setns_preopen() { } while ((de = readdir(ns)) != NULL) { if (strlen(de->d_name) > 0 && de->d_name[0] == '.') continue; + if (!strcmp(de->d_name, "user")) continue; struct uwsgi_string_list *usl = NULL; int found = 0; uwsgi_foreach(usl, uwsgi.setns_socket_skip) { @@ -1777,6 +1778,7 @@ void uwsgi_master_manage_setns(int fd) { } while ((de = readdir(ns)) != NULL) { if (strlen(de->d_name) > 0 && de->d_name[0] == '.') continue; + if (!strcmp(de->d_name, "user")) continue; struct uwsgi_string_list *usl = NULL; int found = 0; uwsgi_foreach(usl, uwsgi.setns_socket_skip) {