#include <grp.h>
#include <pwd.h>
#include <sys/file.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include "clean-ipc.h"
#include "dynamic-user.h"
#include "fd-util.h"
#include "fileio.h"
+#include "format-util.h"
#include "fs-util.h"
#include "io-util.h"
#include "nscd-flush.h"
xsprintf(lock_path, "/run/systemd/dynamic-uid/" UID_FMT, uid);
r = read_one_line_file(lock_path, &user);
- if (r == -ENOENT)
+ if (IN_SET(r, -ENOENT, 0))
return -ESRCH;
if (r < 0)
return r;