stagit-index: remove unveil support for argv

This can reach the unveil argument limits and it is not a good case for using
unveil.
This commit is contained in:
Hiltjo Posthuma 2020-08-08 20:01:05 +02:00
parent 174a763058
commit dc0709f6f4

View file

@ -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