peek(1) #93

Closed
trinity wants to merge 25 commits from peek into main
Showing only changes of commit 21ee79a929 - Show all commits

View File

@ -62,8 +62,11 @@ usage(char *argv0) {
int main(int argc, char *argv[]){
#ifdef __OpenBSD__
pledge("stdio tty unveil", NULL);
unveil(NULL, NULL);
if (pledge("stdio tty unveil", "") != 0 || unveil(NULL, NULL) != 0) {
/* This isn't fatal; these return values could be cast to void just as
* easily. */
trinity marked this conversation as resolved Outdated
Outdated
Review

Remember to handle the possible errors here!

Remember to handle the possible errors here!
(void)perror(argv[0] == NULL ? argv[0] : program_name);
}
#endif
if (argc > 0) { /* option parsing */