]> git.ipfire.org Git - thirdparty/systemd.git/commit
parse-util: make sure "3.+1s" or "3. 1s" are not considered valid time specification 9614/head
authorFilipe Brandenburger <filbranden@google.com>
Fri, 20 Jul 2018 04:50:35 +0000 (21:50 -0700)
committerFilipe Brandenburger <filbranden@google.com>
Fri, 20 Jul 2018 05:09:54 +0000 (22:09 -0700)
commit279f52a1d358efbdfa106dbef301a76a8155b666
tree67665361f943d47ae4d5582d8dd9a177e4f9a77a
parent5a9fb35843d2384a5539a079c4d13c095705fa94
parse-util: make sure "3.+1s" or "3. 1s" are not considered valid time specification

Indeed, strtoll() is super-hard to use properly! :-(

Also added more tests for those cases and copied the tests to parse_nsec as well.
src/basic/time-util.c
src/test/test-time-util.c