Project

General

Profile

Feature #137 » dyson-pkexec-fdwalk.patch

Igor Pashev, 2013-06-23 10:53 AM

View differences:

policykit-1-0.105/src/programs/pkexec.c 2013-06-20 22:14:32.832619161 +0400
207 207
}
208 208

  
209 209
static gboolean
210
fdwalk (FdCallback callback,
210
pk_fdwalk (FdCallback callback,
211 211
        gpointer   user_data)
212 212
{
213 213
  gint fd;
......
838 838
    }
839 839

  
840 840
  /* set close_on_exec on all file descriptors except stdin, stdout, stderr */
841
  if (!fdwalk (set_close_on_exec, GINT_TO_POINTER (3)))
841
  if (!pk_fdwalk (set_close_on_exec, GINT_TO_POINTER (3)))
842 842
    {
843 843
      g_printerr ("Error setting close-on-exec for file desriptors\n");
844 844
      goto out;
(1-1/3)