]> git.armaanb.net Git - stagit.git/blobdiff - stagit-index.c
style.css: highlight anchor ids, useful for linking highlighting lines in a diff
[stagit.git] / stagit-index.c
index cc70e4de0adf31bc4705fa58204cbafbb14d8b5f..59a12d68845f96fd230fa2e6c348f414853cf82c 100644 (file)
@@ -159,6 +159,10 @@ 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