]> Dogcows Code - chaz/tar/commitdiff
*** empty log message ***
authorFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 16 Nov 1994 03:02:57 +0000 (03:02 +0000)
committerFrançois Pinard <pinard@iro.umontreal.ca>
Wed, 16 Nov 1994 03:02:57 +0000 (03:02 +0000)
src/tar.c

index 4622647fe8e8133f595653c2dcdcc30ae90eb895..3a40963d3a52c34a945d67b9ddc3938d490c2807 100644 (file)
--- 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 */
This page took 0.026291 seconds and 4 git commands to generate.