View | Details | Raw Unified | Return to bug 295341
Collapse All | Expand All

(-)PolicyKit-0.8/src/polkit/polkit-sysdeps.c (+10 lines)
Lines 216-221 out: Link Here
216
int
216
int
217
polkit_sysdeps_get_exe_for_pid (pid_t pid, char *out_buf, size_t buf_size)
217
polkit_sysdeps_get_exe_for_pid (pid_t pid, char *out_buf, size_t buf_size)
218
{
218
{
219
#ifdef GET_EXE_FOR_PID_IS_USEFUL
219
        int ret;
220
        int ret;
220
        char proc_name[32];
221
        char proc_name[32];
221
222
Lines 247-252 polkit_sysdeps_get_exe_for_pid (pid_t pi Link Here
247
248
248
out:
249
out:
249
        return ret;
250
        return ret;
251
#else
252
	strncpy (out_buf, "(unknown)", buf_size);
253
	return -1;
254
#endif
250
}
255
}
251
256
252
/**
257
/**
Lines 271-276 out: Link Here
271
int 
276
int 
272
polkit_sysdeps_get_exe_for_pid_with_helper (pid_t pid, char *out_buf, size_t buf_size)
277
polkit_sysdeps_get_exe_for_pid_with_helper (pid_t pid, char *out_buf, size_t buf_size)
273
{
278
{
279
#ifdef GET_EXE_FOR_PID_IS_USEFUL
274
        int ret;
280
        int ret;
275
281
276
        /* TODO: to avoid work we should maintain a cache. The key
282
        /* TODO: to avoid work we should maintain a cache. The key
Lines 326-331 polkit_sysdeps_get_exe_for_pid_with_help Link Here
326
332
327
out:
333
out:
328
        return ret;
334
        return ret;
335
#else
336
	strncpy (out_buf, "(unknown)", buf_size);
337
	return -1;
338
#endif
329
}
339
}
330
340
331
341

Return to bug 295341