Provide framework for exiting with non-zero value on non-critical errors.
This commit is contained in:
parent
eaef1aa309
commit
7d4928cd75
@ -409,7 +409,7 @@ main(int argc, char **argv)
|
||||
free(bsdtar->user_uname);
|
||||
|
||||
cleanup_exclusions(bsdtar);
|
||||
return 0;
|
||||
return (bsdtar->return_value);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -72,6 +72,8 @@ struct bsdtar {
|
||||
size_t u_width; /* for 'list_item' in read.c */
|
||||
char *user_uname; /* User running this program */
|
||||
uid_t user_uid; /* UID running this program */
|
||||
int return_value; /* Value returned by main() */
|
||||
char warned_lead_slash; /* Already displayed warning */
|
||||
|
||||
/*
|
||||
* Data for various subsystems. Full definitions are located in
|
||||
|
Loading…
x
Reference in New Issue
Block a user