From: Yu Watanabe Date: Sat, 21 Jan 2023 06:25:30 +0000 (+0900) Subject: systemctl,test: -EBADF instead of -EBADFD X-Git-Tag: v253-rc1~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1dcfbc514c4ddb5f29f2c278ab700ecf6062fac6;p=thirdparty%2Fsystemd.git systemctl,test: -EBADF instead of -EBADFD Follow-up for da20baaeccbcca78350bf64bdc069dec685c95bc. --- diff --git a/src/libsystemd/sd-login/test-login.c b/src/libsystemd/sd-login/test-login.c index 1710cdeb919..fe4b52f6c68 100644 --- a/src/libsystemd/sd-login/test-login.c +++ b/src/libsystemd/sd-login/test-login.c @@ -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; diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 3f88d1a2cc7..281cf62b204 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -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;