summaryrefslogtreecommitdiff
path: root/sysutils/whowatch/patches/patch-ad
blob: 0122e4ba308ec9730c9b2467c4e4b3d283e762bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$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;