]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/clean-ipc: improve error message a bit
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Oct 2020 15:57:03 +0000 (17:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Oct 2020 16:06:28 +0000 (18:06 +0200)
commitaecdef08be06d0881e0bc996361a46fe34dc9a4b
tree0b547e057a5e4a5e04065a55dc8f1bc3a41edd26
parentc4b843473a75fb38ed5bf54e9d3cfb1cb3719efa
shared/clean-ipc: improve error message a bit

Failed to enter shared memory directory multipath: Permission denied

Failed to enter shared memory directory /dev/shm/multipath: Permission denied

When looking at nested directories, we will print only the final two elements
of the path. That is still more useful than just the last component of the
path. To print the full path, we'd have to allocate the string, and since the
error occurs so very rarely, I think the current best-effort approach is
enough.
src/shared/clean-ipc.c