]> git.ipfire.org Git - thirdparty/systemd.git/commit
getty-generator: show original path in the log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 18 Jul 2025 17:55:01 +0000 (02:55 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 22 Jul 2025 23:32:05 +0000 (08:32 +0900)
commit4e346e10d216e1e9189bc7b4d99ab5ee627ef492
treee1e532934828341f4641b22321c70fb6fed7c30e
parent3eb5402b5c897c69bbccce093856effab93ed01d
getty-generator: show original path in the log message

This fixes the following log message:
Before:
```
Invalid container tty device specified, ignoring: (null)
```
After:
```
Invalid container tty device specified, ignoring: /dev/tty0
```

If a non-pts device path is passed to add_container_getty(), we call
add_getty_impl() with NULL tty, so previously (null) was logged.
Let's log the original path when an invalid tty is specified.
src/getty-generator/getty-generator.c