pkgsrc/sysutils/whowatch/patches/patch-ad
2006-06-12 16:41:30 +00:00

16 lines
544 B
Text

$NetBSD: patch-ad,v 1.1 2006/06/12 16:41:30 joerg Exp $
--- procinfo.c.orig 2006-06-12 16:36:48.000000000 +0000
+++ procinfo.c
@@ -85,7 +85,11 @@ void get_info(int pid, struct procinfo *
p->ppid = info.kp_eproc.e_ppid;
p->tpgid = info.kp_eproc.e_tpgid;
+#if defined(__DragonFly__)
+ p->euid = info.kp_eproc.e_ucred.cr_svuid;
+#else
p->euid = info.kp_eproc.e_pcred.p_svuid;
+#endif
p->stat = info.kp_proc.p_stat;
strncpy(p->exec_file, info.kp_proc.p_comm, EXEC_FILE);
p->cterm = info.kp_eproc.e_tdev;