]> git.ipfire.org Git - thirdparty/systemd.git/commit
bootctl: do not print slash more than once
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 31 May 2025 01:24:17 +0000 (10:24 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 31 May 2025 11:53:04 +0000 (13:53 +0200)
commit91c60ff52801512eaf41e9da7016cb98580fe852
treeacc1f2c8475af128450b5551ecbc2c84d1654783
parent0af993769150de78c4c1c84190318e2766262966
bootctl: do not print slash more than once

When bootctl is called by an unprivileged user, then previously we got
```
Failed to read "/boot/EFI/systemd": Permission denied
Failed to open '/boot//loader/loader.conf': Permission denied
```
Now, with this patch, we get
```
Failed to read "/boot/EFI/systemd": Permission denied
Failed to open '/boot/loader/loader.conf': Permission denied
```
src/bootctl/bootctl-install.c
src/bootctl/bootctl-status.c
src/shared/bootspec.c