mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 12:18:13 +02:00
Always append closing quote in log command
Patch suggested by Tomas Hoger <thoger@redhat.com>
This commit is contained in:
parent
16e9289ca2
commit
3f3a531902
1 changed files with 5 additions and 6 deletions
|
|
@ -575,12 +575,11 @@ cache_peer_loginfo_string (BusConnectionData *d,
|
|||
}
|
||||
if (!_dbus_string_append_printf (&loginfo_buf, "pid=%ld comm=\"", pid))
|
||||
goto oom;
|
||||
/* Ignore errors here */
|
||||
if (_dbus_command_for_pid (pid, &loginfo_buf, MAX_LOG_COMMAND_LEN, NULL))
|
||||
{
|
||||
if (!_dbus_string_append_byte (&loginfo_buf, '"'))
|
||||
goto oom;
|
||||
}
|
||||
/* Ignore errors here; we may not have permissions to read the
|
||||
* proc file. */
|
||||
_dbus_command_for_pid (pid, &loginfo_buf, MAX_LOG_COMMAND_LEN, NULL);
|
||||
if (!_dbus_string_append_byte (&loginfo_buf, '"'))
|
||||
goto oom;
|
||||
}
|
||||
|
||||
if (dbus_connection_get_windows_user (connection, &windows_sid))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue