Skip to content

Commit

Permalink
Fail out when you have passed an invalid file
Browse files Browse the repository at this point in the history
  • Loading branch information
halosghost committed Jul 15, 2016
1 parent bd464d6 commit 72c3210
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.c
Expand Up @@ -125,6 +125,7 @@ main (signed argc, char * argv []) {
#pragma clang diagnostic ignored "-Wdisabled-macro-expansion"
fprintf(stderr, "pbpst: %s is not a regular file\n", state.path);
#pragma clang diagnostic pop
exit_status = EXIT_FAILURE; goto cleanup;
}

if ( st.st_size > PB_FILE_MAX ) {
Expand Down

0 comments on commit 72c3210

Please sign in to comment.