]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl,test: -EBADF instead of -EBADFD
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 21 Jan 2023 06:25:30 +0000 (15:25 +0900)
committerLennart Poettering <lennart@poettering.net>
Sat, 21 Jan 2023 09:47:54 +0000 (10:47 +0100)
Follow-up for da20baaeccbcca78350bf64bdc069dec685c95bc.

src/libsystemd/sd-login/test-login.c
src/systemctl/systemctl-show.c

index 1710cdeb919b7d03cb35bf0e11cbf0e4421a368f..fe4b52f6c684bc5ee30e91faa4a97a02770cc432 100644 (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;
index 3f88d1a2cc7570e25be9764b2b980c6b0f8ef344..281cf62b2043724eb2ed22d28fc93d718ff827cf 100644 (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;