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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user