]> git.ipfire.org Git - thirdparty/systemd.git/commit
vpick: use prefix_roota() to avoid double slash in log messages 31166/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 1 Feb 2024 13:00:48 +0000 (14:00 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 1 Feb 2024 13:54:06 +0000 (14:54 +0100)
commitd049bffc50bf68aef4e12add1877e5fccfda5cca
treecf57845b2787780d90a1bba5ff9555296973359c
parent925878476213d927d5b24c15a80edd5440934479
vpick: use prefix_roota() to avoid double slash in log messages

If the toplevel_path is empty we end up with doubled leading slash,
which looks weird:

[ 4737.028985] testsuite-74.sh[102]: Inode '//var/lib/machines/mytree.v/mytree_37.0_arm64+2-3' has wrong type, found 'dir'.
[ 4737.028985] testsuite-74.sh[102]: Failed to pick version for '/var/lib/machines/mytree.v': Is a directory
...
[ 4316.957536] testsuite-74.sh[99]: Failed to open '//var/lib/machines/mytree.v/mytree_37.0': No such file or directory
...
src/shared/vpick.c