File ChangeLog changed (mode: 100644) (index 9c496297e..b17314176) |
5 |
5 |
Corrected documentation on how the use of different preview macros affects |
Corrected documentation on how the use of different preview macros affects |
6 |
6 |
classification of a previewer. |
classification of a previewer. |
7 |
7 |
|
|
|
8 |
|
Fixed absolute paths comparing equal to similar relative paths (regression |
|
9 |
|
in 0.14-beta). |
|
10 |
|
|
8 |
11 |
0.13 to 0.14-beta (2025-01-19) |
0.13 to 0.14-beta (2025-01-19) |
9 |
12 |
|
|
10 |
13 |
Changed --with-gtk flag to --with-glib (old name is still available). GTK |
Changed --with-gtk flag to --with-glib (old name is still available). GTK |
File src/utils/path.c changed (mode: 100644) (index cbe5ca11c..9f67e89b1) |
... |
... |
make_canonic_path(const char directory[], char buf[], size_t buf_size, |
148 |
148 |
} |
} |
149 |
149 |
else /* note this else */ |
else /* note this else */ |
150 |
150 |
#endif |
#endif |
151 |
|
if(strict_rel_paths) |
|
|
151 |
|
if(strict_rel_paths && !is_path_absolute(directory)) |
152 |
152 |
{ |
{ |
153 |
153 |
strcpy(buf, "./"); |
strcpy(buf, "./"); |
154 |
|
q += 2;; |
|
|
154 |
|
q += 2; |
155 |
155 |
} |
} |
156 |
156 |
|
|
157 |
157 |
while(*p != '\0' && (size_t)((q + 1) - buf) < buf_size - 1U) |
while(*p != '\0' && (size_t)((q + 1) - buf) < buf_size - 1U) |
File tests/utils/paths_are_equal.c changed (mode: 100644) (index 450ef3f9c..c15bb8cae) |
4 |
4 |
|
|
5 |
5 |
TEST(dotdirs_in_relative_paths_normalized) |
TEST(dotdirs_in_relative_paths_normalized) |
6 |
6 |
{ |
{ |
|
7 |
|
assert_false(paths_are_equal("/a", "./a")); |
|
8 |
|
assert_false(paths_are_equal("/a", "a")); |
|
9 |
|
|
|
10 |
|
assert_false(paths_are_equal("/a/b/c", "./a/b/c")); |
|
11 |
|
assert_false(paths_are_equal("/a/b/c", "a/b/c")); |
|
12 |
|
|
|
13 |
|
assert_true(paths_are_equal("/a", "////a")); |
|
14 |
|
assert_true(paths_are_equal("/a/b/./c", "/a//b/c/d/..")); |
|
15 |
|
|
7 |
16 |
assert_true(paths_are_equal("a", "./a")); |
assert_true(paths_are_equal("a", "./a")); |
8 |
17 |
assert_true(paths_are_equal("./a", "././a")); |
assert_true(paths_are_equal("./a", "././a")); |
9 |
18 |
assert_true(paths_are_equal("a", "./././a")); |
assert_true(paths_are_equal("a", "./././a")); |