Lennart Poettering
57f9ca3aa0
chase-symlinks: prefer path_extract_directory() over dirname()
2022-04-12 17:10:50 +02:00
Lennart Poettering
860f4c6aa6
chase-symlinks: add comment for opaque argument
2022-04-12 17:10:06 +02:00
Lennart Poettering
0ac6cdd6ae
chase-symlinks: add missing OOM check
2022-04-12 17:09:21 +02:00
Lennart Poettering
69cf392f8e
chase-symlinks: use empty_to_root() where appropriate
2022-04-12 17:08:33 +02:00
Lennart Poettering
7b9be862c7
chase-symlinks: avoid using stack allocation for potentially huge paths
...
let's better be safe and use heap allocation for paths which might be
unbounded.
In particular as previously we copied the stack memory to heap anyway,
via a noop path_make_absolute_cwd() call.
2022-04-12 17:07:49 +02:00
Lennart Poettering
8f47f880a4
chase-symlinks: use proper typedef for flags argument
2022-04-12 17:06:49 +02:00
Lennart Poettering
fc03e80c6b
glyph-util: add new glyphs for up/down arrows
2022-02-16 22:40:06 +01:00
Lennart Poettering
01bebba3de
basic: move chase_symlinks_and_fopen_unlocked() → chase-symlinks.[ch]
2021-10-05 19:37:30 +01:00
Lennart Poettering
f435195925
basic: spit out chase_symlinks() from fs-util.[ch] → chase-symlinks.[ch]
2021-10-05 16:14:37 +02:00