summaryrefslogtreecommitdiff
path: root/sysutils/lsof/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/lsof/patches/patch-aa')
-rw-r--r--sysutils/lsof/patches/patch-aa21
1 files changed, 16 insertions, 5 deletions
diff --git a/sysutils/lsof/patches/patch-aa b/sysutils/lsof/patches/patch-aa
index d2b1879bfa0..41419e85f20 100644
--- a/sysutils/lsof/patches/patch-aa
+++ b/sysutils/lsof/patches/patch-aa
@@ -1,13 +1,24 @@
-$NetBSD: patch-aa,v 1.26 2007/08/14 19:59:18 veego Exp $
+$NetBSD: patch-aa,v 1.27 2008/05/17 23:53:29 christos Exp $
If LSOF_MORE_SECURE is non-zero, compile lsof with security, and
only let unprivileged (non-root) users view their own open files.
Set LSOF_LESS_SECURE_SOCKETS to non-zero in order to allow non-root
users to see open sockets, even when LSOF_MORE_SECURE is set.
---- dialects/n+obsd/machine.h.orig 2006-03-28 23:54:17.000000000 +0200
-+++ dialects/n+obsd/machine.h 2007-08-11 18:01:56.000000000 +0200
-@@ -410,7 +410,9 @@
+--- dialects/n+obsd/machine.h.orig 2006-03-28 16:54:17.000000000 -0500
++++ dialects/n+obsd/machine.h 2008-05-17 18:53:29.000000000 -0400
+@@ -41,6 +41,10 @@
+
+ #include <sys/types.h>
+ #include <sys/param.h>
++#include <stdbool.h>
++#if __NetBSD_Version__ >= 499006200
++#define HASCWDINFO
++#endif
+
+
+ /*
+@@ -410,7 +414,9 @@
* (the one that its user logged on with) of the lsof process.
*/
@@ -18,7 +29,7 @@ users to see open sockets, even when LSOF_MORE_SECURE is set.
/*
-@@ -419,7 +421,9 @@
+@@ -419,7 +425,9 @@
* listing is selected by the "-i" option.
*/