1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-29 21:55:36 +03:00

systemctl,test: -EBADF instead of -EBADFD

Follow-up for da20baaecc.
This commit is contained in:
Yu Watanabe 2023-01-21 15:25:30 +09:00 committed by Lennart Poettering
parent 23fcf34a51
commit 1dcfbc514c
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ TEST(login) {
*type = NULL, *class = NULL, *state = NULL, *state2 = NULL,
*seat = NULL, *session = NULL,
*unit = NULL, *user_unit = NULL, *slice = NULL;
_cleanup_close_ int pidfd = -EBADFD;
_cleanup_close_ int pidfd = -EBADF;
int r;
uid_t u, u2 = UID_INVALID;
char *t, **seats = NULL, **sessions = NULL;

View File

@ -2148,7 +2148,7 @@ static int get_unit_dbus_path_by_pid(
_cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;
_cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL;
_cleanup_free_ char *path = NULL, *unit = NULL;
_cleanup_close_ int pidfd = -EBADFD;
_cleanup_close_ int pidfd = -EBADF;
char *p, *u;
int r;