1
0
mirror of https://gitlab.gnome.org/GNOME/glib.git synced 2026-10-24 00:49:00 +03:00

localfileinfo: Fix swapped selinux context symlink logic

This commit is contained in:
Khalid Abu Shawarib
2026-07-24 18:43:24 +03:00
parent f16b190889
commit 41c80f2f40

View File

@@ -218,12 +218,12 @@ get_selinux_context (const char *path,
{
if (follow_symlinks)
{
if (lgetfilecon_raw (path, &context) < 0)
if (getfilecon_raw (path, &context) < 0)
return;
}
else
{
if (getfilecon_raw (path, &context) < 0)
if (lgetfilecon_raw (path, &context) < 0)
return;
}