From 8a31ed10c8ed91b35f9fa3831e76ddb819fab88a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 28 Mar 2019 08:31:51 +0100 Subject: migration: check for epoch time as minimum year --- migration/migration.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'migration') diff --git a/migration/migration.cpp b/migration/migration.cpp index d4ec6493..eda88071 100644 --- a/migration/migration.cpp +++ b/migration/migration.cpp @@ -50,15 +50,13 @@ void migrator::register_migration(mptr const& m) bool ok = true; - if (year < "2016") - abort(); const int month_ = to_int(month, ok), day_ = to_int(day, ok); (void) to_int(year, ok); (void) to_int(serial, ok); - if (!ok) + if (!ok || year < 1970) abort(); if (month_ < 1 || month_ > 12) -- cgit v1.2.3