File 5013-Revert-run-pass-the-pty-slave-fd-to-transient-servic.patch of Package systemd.34275
From 2c366954028411b5a718fd13efceff939a83bd6a Mon Sep 17 00:00:00 2001
From: Franck Bui <fbui@suse.com>
Date: Mon, 10 Jun 2024 16:32:55 +0200
Subject: [PATCH 5013/5013] Revert "run: pass the pty slave fd to transient
service"
This reverts commit 369d7d4083a835e654ae02f92d559293bde66919.
---
src/run/run.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/src/run/run.c b/src/run/run.c
index ce81655a76..e760842c9d 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -804,17 +804,11 @@ static int transient_service_set_properties(sd_bus_message *m, const char *pty_p
}
if (pty_path) {
- _cleanup_close_ int pty_slave = -EBADF;
-
- pty_slave = open_terminal(pty_path, O_RDWR|O_NOCTTY|O_CLOEXEC);
- if (pty_slave < 0)
- return pty_slave;
-
r = sd_bus_message_append(m,
"(sv)(sv)(sv)(sv)",
- "StandardInputFileDescriptor", "h", pty_slave,
- "StandardOutputFileDescriptor", "h", pty_slave,
- "StandardErrorFileDescriptor", "h", pty_slave,
+ "StandardInput", "s", "tty",
+ "StandardOutput", "s", "tty",
+ "StandardError", "s", "tty",
"TTYPath", "s", pty_path);
if (r < 0)
return bus_log_create_error(r);
--
2.35.3