Commit dbf58d4e authored by Jan Rybar's avatar Jan Rybar

Merge branch 'allow-unset-process-uid' into 'master'

Allow uid of -1 for a PolkitUnixProcess

See merge request !17
parents c898fdf4 c05472b8
......@@ -228,14 +228,9 @@ polkit_unix_process_set_property (GObject *object,
polkit_unix_process_set_pid (unix_process, g_value_get_int (value));
break;
case PROP_UID: {
gint val;
val = g_value_get_int (value);
g_return_if_fail (val != -1);
polkit_unix_process_set_uid (unix_process, val);
case PROP_UID:
polkit_unix_process_set_uid (unix_process, g_value_get_int (value));
break;
}
case PROP_START_TIME:
polkit_unix_process_set_start_time (unix_process, g_value_get_uint64 (value));
......
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