Add a patch to be able to omit the full path in priv `command' - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 634a66cfbb4997180e2b5ec5a03ffd7afa375153
(DIR) parent c80959396bf192dc452103e4a2df1d9a10030a8e
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 25 Jun 2019 01:36:45
Add a patch to be able to omit the full path in priv `command'
Diffstat:
security/priv/patch-priv.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff -r c80959396bf1 -r 634a66cfbb49 security/priv/patch-priv.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/priv/patch-priv.c Tue Jun 25 01:36:45 2019 +0200
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Change the F_BASENAME semantic in order to be able to specify a
+complete path in `command name' field of database file and just a
+basename as priv `command'.
+
+--- priv.c.orig 2004-02-09 04:37:07.000000000 +0000
++++ priv.c
+@@ -249,7 +249,7 @@ main(int argc, char **argv, char **envp)
+ }
+
+ /* Check basename if necessary */
+- if ((nflags & F_BASENAME) && (strcmp(cmd, newprogbase) == 0)) {
++ if ((nflags & F_BASENAME) && (strcmp(cmd, realprog) == 0)) {
+ ok = 1;
+ break;
+ }