Files
flatpak/common
liweinan 187a960170 dir: Don't read symlink-target from non-symlinks
GIO only sets standard::symlink-target on the GFileInfo when the queried
path actually is a symlink. Several helpers blindly queried "active" /
"current" with AT_SYMLINK_NOFOLLOW and then called
g_file_info_get_symlink_target(), which emits

  GLib-GIO-CRITICAL: GFileInfo created without standard::symlink-target

whenever the entry exists but is not a symlink. This is reproducible
with `flatpak --system remote-ls --updates`, which probes every
deployed ref.

Check g_file_info_get_is_symlink() before reading the target, keeping
the existing "not deployed" result while avoiding the spurious
criticals.

Fixes: https://github.com/flatpak/flatpak/issues/6766
Fixes: https://github.com/flatpak/flatpak/issues/6413
2026-10-13 15:58:37 +00:00
..
2019-02-25 18:12:30 +00:00
2026-01-21 17:58:19 +00:00
2026-01-05 21:16:15 +05:30
2023-09-04 13:25:32 +01:00
2018-05-24 11:59:52 +00:00