Commit b7d280f6 authored by Simon McVittie's avatar Simon McVittie Committed by Simon McVittie

_dbus_change_to_daemon_user (audit code path): set DBusError correctly

The other error cases here all set the error instead of just warning.
Signed-off-by: default avatarSimon McVittie <smcv@debian.org>
Reviewed-by: Ralf Habacker's avatarRalf Habacker <ralf.habacker@freenet.de>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=97009
parent 76ae5273
......@@ -166,8 +166,9 @@ _dbus_change_to_daemon_user (const char *user,
_dbus_strerror (errno));
break;
case -5:
_dbus_warn ("Failed to drop supplementary groups: %s\n",
_dbus_strerror (errno));
dbus_set_error (error, _dbus_error_from_errno (errno),
"Failed to drop supplementary groups: %s",
_dbus_strerror (errno));
break;
case -6:
dbus_set_error (error, _dbus_error_from_errno (errno),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment