28 lines
948 B
Diff
28 lines
948 B
Diff
From 3c7b4ebf94d167df835c4a5a21b813f803c23b05 Mon Sep 17 00:00:00 2001
|
|
From: Lennart Poettering <lennart@poettering.net>
|
|
Date: Tue, 28 Jan 2020 22:00:02 +0100
|
|
Subject: [PATCH 1480/1760] test: make sure chase_symlink() returns normalized
|
|
paths
|
|
|
|
Reference: https://github.com/systemd/systemd/commit/3c7b4ebf94d167df835c4a5a21b813f803c23b05
|
|
Conflict: NA
|
|
---
|
|
src/test/test-fs-util.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c
|
|
index 8207beb..670a278 100644
|
|
--- a/src/test/test-fs-util.c
|
|
+++ b/src/test/test-fs-util.c
|
|
@@ -148,6 +148,7 @@ static void test_chase_symlinks(void) {
|
|
r = chase_symlinks(p, NULL, 0, &result);
|
|
assert_se(r > 0);
|
|
assert_se(path_equal(result, "/usr"));
|
|
+ assert_se(streq(result, "/usr")); /* we guarantee that we drop redundant slashes */
|
|
result = mfree(result);
|
|
|
|
r = chase_symlinks(p, temp, 0, &result);
|
|
--
|
|
2.23.0
|
|
|