mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
314d3a38c6
mkinitcpio-busybox: bump to 1.19.4 mkinitcpio: bump to 0.8.3
28 lines
887 B
Diff
28 lines
887 B
Diff
From 59e32a1f240c5f6a1d64d5e71a4a357245c34eaf Mon Sep 17 00:00:00 2001
|
|
From: Karel Zak <kzak@redhat.com>
|
|
Date: Fri, 24 Feb 2012 20:25:43 +0100
|
|
Subject: [PATCH 07/12] libmount: canonicalize all paths from (fs)tab
|
|
|
|
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=797216
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
---
|
|
libmount/src/tab.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/libmount/src/tab.c b/libmount/src/tab.c
|
|
index 37f47bd..f10c1de 100644
|
|
--- a/libmount/src/tab.c
|
|
+++ b/libmount/src/tab.c
|
|
@@ -456,7 +456,7 @@ struct libmnt_fs *mnt_table_find_target(struct libmnt_table *tb, const char *pat
|
|
while(mnt_table_next_fs(tb, &itr, &fs) == 0) {
|
|
char *p;
|
|
|
|
- if (!fs->target || !mnt_fs_is_swaparea(fs) ||
|
|
+ if (!fs->target || mnt_fs_is_swaparea(fs) ||
|
|
(*fs->target == '/' && *(fs->target + 1) == '\0'))
|
|
continue;
|
|
|
|
--
|
|
1.7.9.2
|
|
|