]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
stdio-bridge: make the error more straightforward
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Jan 2022 10:44:44 +0000 (11:44 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Jan 2022 10:59:08 +0000 (11:59 +0100)
src/stdio-bridge/stdio-bridge.c

index 5d4ffa5e32329528a8d8fec2f11c88111944377f..1a2099a8d1b85665b225aa57f86bff80b5d26749 100644 (file)
@@ -125,7 +125,7 @@ static int run(int argc, char *argv[]) {
                 in_fd = SD_LISTEN_FDS_START;
                 out_fd = SD_LISTEN_FDS_START;
         } else
-                return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Illegal number of file descriptors passed.");
+                return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "More than one file descriptor was passed.");
 
         is_unix =
                 sd_is_socket(in_fd, AF_UNIX, 0, 0) > 0 &&