libmount: make dlopen() dependency

This commit is contained in:
Lennart Poettering
2025-09-26 08:29:37 +09:00
committed by Yu Watanabe
parent b97b8fd4e3
commit b3243f4bee
25 changed files with 270 additions and 113 deletions
+3 -3
View File
@@ -753,12 +753,12 @@ static char* disk_mount_point(const char *label) {
for (;;) {
struct libmnt_fs *fs;
r = mnt_table_next_fs(table, iter, &fs);
r = sym_mnt_table_next_fs(table, iter, &fs);
if (r != 0)
return NULL;
if (path_equal(mnt_fs_get_source(fs), device)) {
const char *target = mnt_fs_get_target(fs);
if (path_equal(sym_mnt_fs_get_source(fs), device)) {
const char *target = sym_mnt_fs_get_target(fs);
if (target)
return strdup(target);
}