projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
174a763
)
stagit-index: remove unveil support for argv
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 8 Aug 2020 18:01:05 +0000
(20:01 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Sat, 8 Aug 2020 18:01:05 +0000
(20:01 +0200)
This can reach the unveil argument limits and it is not a good case for using
unveil.
stagit-index.c
patch
|
blob
|
history
diff --git
a/stagit-index.c
b/stagit-index.c
index 2b243ec15660ba042313d4317b2d33810f9300a3..bb0ad3c240fc117f31c07697494348061ccf5502 100644
(file)
--- a/
stagit-index.c
+++ b/
stagit-index.c
@@
-154,10
+154,6
@@
main(int argc, char *argv[])
git_libgit2_init();
#ifdef __OpenBSD__
- for (i = 1; i < argc; i++)
- if (unveil(argv[i], "r") == -1)
- err(1, "unveil: %s", argv[i]);
-
if (pledge("stdio rpath", NULL) == -1)
err(1, "pledge");
#endif