]> git.ipfire.org Git - thirdparty/systemd.git/commit
run: chop off username from --machine= argument before calling OpenMachinePTY()
authorLennart Poettering <lennart@poettering.net>
Wed, 4 Jun 2025 16:28:35 +0000 (18:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 Jun 2025 10:45:37 +0000 (12:45 +0200)
commit994a42a0967e2f7624462cbb895e71a418bc277b
treecb818251346c4541010220dbe7bc38c5f3534769
parent020d6c1dcee94826b16788125e092be1bcefb2c7
run: chop off username from --machine= argument before calling OpenMachinePTY()

Let's be compatible with sd-bus' logic to talk to machine, and support
the usual user@host syntax. We only want the host part, hence chop if
off before passing it to OpenMachinePTY().

Fixes: #32997
src/run/run.c