]> git.ipfire.org Git - thirdparty/systemd.git/commit
vpick: make a working copy of the current dname
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 1 Feb 2024 12:56:37 +0000 (13:56 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 1 Feb 2024 13:54:06 +0000 (14:54 +0100)
commit925878476213d927d5b24c15a80edd5440934479
treeb12dbe30a01106e9db8dacec66ce6de556e662c1
parentde39202426e2d3d4d6fb509635d2462b5ded6e9c
vpick: make a working copy of the current dname

Since we might edit the string later on by inserting NULs, which then
leads up to using an invalid dname when opening the potential chosen
directory:

[ 4316.957536] testsuite-74.sh[99]: make_choice: entry: mytree_37.0_arm64+2-3
[ 4316.957536] testsuite-74.sh[99]: make_choice: best_version: 37.0
[ 4316.957536] testsuite-74.sh[99]: make_choice: best_filename: mytree_37.0
[ 4316.957536] testsuite-74.sh[99]: Failed to open '//var/lib/machines/mytree.v/mytree_37.0': No such file or directory

Uncovered by vpick tests from TEST-74-AUX-UTILS when run on aarch64.
src/shared/vpick.c