mystifyingyouth / rpms / polkit

Forked from rpms/polkit 2 years ago
Clone

Blame SOURCES/polkit-0.112-allow-uid-of-1.patch

dc3ed5
diff -up ./src/polkit/polkitunixprocess.c.ori ./src/polkit/polkitunixprocess.c
dc3ed5
--- ./src/polkit/polkitunixprocess.c.ori	2019-02-06 16:47:23.460666237 +0100
dc3ed5
+++ ./src/polkit/polkitunixprocess.c	2019-02-06 16:47:43.846573792 +0100
dc3ed5
@@ -211,14 +211,9 @@ polkit_unix_process_set_property (GObjec
dc3ed5
       polkit_unix_process_set_pid (unix_process, g_value_get_int (value));
dc3ed5
       break;
dc3ed5
 
dc3ed5
-    case PROP_UID: {
dc3ed5
-      gint val;
dc3ed5
-
dc3ed5
-      val = g_value_get_int (value);
dc3ed5
-      g_return_if_fail (val != -1);
dc3ed5
-      polkit_unix_process_set_uid (unix_process, val);
dc3ed5
+    case PROP_UID:
dc3ed5
+      polkit_unix_process_set_uid (unix_process, g_value_get_int (value));
dc3ed5
       break;
dc3ed5
-    }
dc3ed5
 
dc3ed5
     case PROP_START_TIME:
dc3ed5
       polkit_unix_process_set_start_time (unix_process, g_value_get_uint64 (value));