]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/home/pam_systemd_home.c
tree-wide: use -EBADF for fd initialization
[thirdparty/systemd.git] / src / home / pam_systemd_home.c
index 8b41416578004e287607494f29b87240632890b0..8a7bfc5837f26fe9b9e3bccea4c3b425994b1229 100644 (file)
@@ -477,7 +477,7 @@ static int acquire_home(
         _cleanup_(user_record_unrefp) UserRecord *ur = NULL, *secret = NULL;
         bool do_auth = please_authenticate, home_not_active = false, home_locked = false;
         _cleanup_(sd_bus_unrefp) sd_bus *bus = NULL;
-        _cleanup_close_ int acquired_fd = -1;
+        _cleanup_close_ int acquired_fd = -EBADF;
         _cleanup_free_ char *fd_field = NULL;
         const void *home_fd_ptr = NULL;
         const char *username = NULL;