gdbusaddress: setuid error message references AT_SECURE

g_check_setuid does more than setuid checks when using AT_SECURE.
Make sure that it is referenced in the error message to help
users debug in case or errors

Closes #2518
This commit is contained in:
Pablo Correa Gómez 2021-11-01 15:51:23 +01:00
parent e4bb09d8ec
commit 14c5589ed6
No known key found for this signature in database
GPG Key ID: 7A342565FF635F79

View File

@ -1098,7 +1098,7 @@ get_session_address_dbus_launch (GError **error)
if (GLIB_PRIVATE_CALL (g_check_setuid) ())
{
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
_("Cannot spawn a message bus when setuid"));
_("Cannot spawn a message bus when AT_SECURE is set"));
goto out;
}