Skip to content

Commit

Permalink
pivy-zfs, pivy-ca: exit on invalid options
Browse files Browse the repository at this point in the history
  • Loading branch information
arekinath committed Dec 11, 2023
1 parent 6f809fc commit e4cfc19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pivy-ca.c
Original file line number Diff line number Diff line change
Expand Up @@ -1392,6 +1392,8 @@ main(int argc, char *argv[])
if (++d_level > 1)
piv_full_apdu_debug = B_TRUE;
break;
default:
usage();
}
}

Expand Down
2 changes: 2 additions & 0 deletions pivy-zfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,8 @@ main(int argc, char *argv[])
case 't':
tpl = optarg;
break;
default:
usage();
}
}

Expand Down

0 comments on commit e4cfc19

Please sign in to comment.