stagit-index: remove unveil support for argv
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 8 Aug 2020 18:01:05 +0000 (20:01 +0200)
committerHiltjo 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

index 2b243ec15660ba042313d4317b2d33810f9300a3..bb0ad3c240fc117f31c07697494348061ccf5502 100644 (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