]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: make script token parser more robust
authorKarel Zak <kzak@redhat.com>
Tue, 25 Oct 2016 11:41:10 +0000 (13:41 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 25 Oct 2016 11:42:48 +0000 (13:42 +0200)
commit8430b9b88426eb3c273b02a2d9505d839913317c
tree71411e2e41f430af949fc5abe417395c8698266d
parent0dcfebf527744bf9b78c576a64ddec7d4367afe3
libfdisk: make script token parser more robust

* make sure token is terminated
* skip closing quotes
* allow extra space after quotes and before terminater
* skip extra space after terminater

Addresses: https://github.com/karelzak/util-linux/issues/367
Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/script.c