From: Alejandro Colomar Date: Tue, 18 Feb 2025 14:29:54 +0000 (+0100) Subject: lib/getdate.y: Don't parse a raw number; just a calendar date X-Git-Tag: 4.18.0-rc1~101 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14a5240ba7e922e11c1f7ab2a1071a2f1ea86ee3;p=thirdparty%2Fshadow.git lib/getdate.y: Don't parse a raw number; just a calendar date Our caller, strtoday(), already handles a raw number. Signed-off-by: Alejandro Colomar --- diff --git a/lib/getdate.y b/lib/getdate.y index 835791d26..c0df43428 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -132,7 +132,6 @@ spec : /* NULL */ ; item : date - | number ; date : tUNUMBER tSNUMBER tSNUMBER { @@ -143,14 +142,6 @@ date : tUNUMBER tSNUMBER tSNUMBER { } ; -number : tUNUMBER - { - yyDay= ($1)%100; - yyMonth= ($1/100)%100; - yyYear = $1/10000; - } - ; - %%