1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 09:21:26 +03:00

path-util: when checking systemd versions, check both lib and lib64

We need to check both to be compatible with multilib images.
This commit is contained in:
Lennart Poettering 2017-11-27 20:48:46 +01:00
parent 3aa6a55904
commit 28faeda47f

View File

@ -882,7 +882,9 @@ int systemd_installation_has_version(const char *root, unsigned minimal_version)
* for Gentoo which does a merge without making /lib a symlink. * for Gentoo which does a merge without making /lib a symlink.
*/ */
"lib/systemd/libsystemd-shared-*.so\0" "lib/systemd/libsystemd-shared-*.so\0"
"usr/lib/systemd/libsystemd-shared-*.so\0") { "lib64/systemd/libsystemd-shared-*.so\0"
"usr/lib/systemd/libsystemd-shared-*.so\0"
"usr/lib64/systemd/libsystemd-shared-*.so\0") {
_cleanup_strv_free_ char **names = NULL; _cleanup_strv_free_ char **names = NULL;
_cleanup_free_ char *path = NULL; _cleanup_free_ char *path = NULL;