Provide framework for exiting with non-zero value on non-critical errors.

This commit is contained in:
kientzle 2004-05-27 04:30:59 +00:00
parent eaef1aa309
commit 7d4928cd75
2 changed files with 3 additions and 1 deletions

View File

@ -409,7 +409,7 @@ main(int argc, char **argv)
free(bsdtar->user_uname);
cleanup_exclusions(bsdtar);
return 0;
return (bsdtar->return_value);
}
/*

View File

@ -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