Hi,
After the DB is already opened we won't need to read it anymore so rpath
can go away, we still just need wpath in the case we are adding/removing
entries in the DB.
OK?
Index: spamdb.c
===================================================================
RCS file: /cvs/src/usr.sbin/spamdb/spamdb.c,v
retrieving revision 1.34
diff -u -p -u -r1.34 spamdb.c
--- spamdb.c 29 Oct 2017 19:11:34 -0000 1.34
+++ spamdb.c 26 Jul 2018 14:36:58 -0000
@@ -369,10 +369,10 @@ main(int argc, char **argv)
}
if (action == 0) {
- if (pledge("stdio rpath", NULL) == -1)
+ if (pledge("stdio", NULL) == -1)
err(1, "pledge");
} else {
- if (pledge("stdio rpath wpath", NULL) == -1)
+ if (pledge("stdio wpath", NULL) == -1)
err(1, "pledge");
}