From: François Pinard Date: Wed, 16 Nov 1994 03:02:57 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=2f65bfa9c2b906b2b709e279cedcffb78cee015b;p=chaz%2Ftar *** empty log message *** --- diff --git a/src/tar.c b/src/tar.c index 4622647..3a40963 100644 --- a/src/tar.c +++ b/src/tar.c @@ -494,6 +494,10 @@ options(argc, argv) get_newer: f_new_files++; new_time=get_date(optarg, (PTR) 0); + if (new_time == (time_t) -1) { + msg("invalid date format `%s'", optarg); + exit(EX_ARGSBAD); + } break; case 'o': /* Generate old archive */