From: Mike Yuan Date: Sat, 3 Jan 2026 19:26:27 +0000 (+0100) Subject: core/dynamic-user: flock() does not return EBUSY X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=776dc1b9d5294f217b0d717126dced4993395ee1;p=thirdparty%2Fsystemd.git core/dynamic-user: flock() does not return EBUSY --- diff --git a/src/core/dynamic-user.c b/src/core/dynamic-user.c index 9d7d96e4a37..576ce5c8b0e 100644 --- a/src/core/dynamic-user.c +++ b/src/core/dynamic-user.c @@ -240,7 +240,7 @@ static int pick_uid(char **suggested_paths, const char *name, uid_t *ret_uid) { r = flock(lock_fd, LOCK_EX|LOCK_NB); /* Try to get a BSD file lock on the UID lock file */ if (r < 0) { - if (IN_SET(errno, EBUSY, EAGAIN)) + if (errno == EAGAIN) goto next; /* already in use */ return -errno;