discover/pxe: pxe parser should only treat "::" paths as absolute
authorJeremy Kerr <jk@ozlabs.org>
Thu, 27 Feb 2014 05:54:32 +0000 (13:54 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 27 Feb 2014 05:54:32 +0000 (13:54 +0800)
commitf94ca3311758854670d25ba4e7853d76c2113402
tree8ea7d571a5c986bb93f11b03f6a8eec8e74cd057
parent922756a3aefd8ba5c5675efd37df9f43938cf432
discover/pxe: pxe parser should only treat "::" paths as absolute

PXELinux treats all paths as relative, requiring a "::/path" syntax for
truly absolute URLs.

This change implements the same behaviour in petitboot, and updates the
testcases to suit.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/pxe-parser.c
test/parser/Makefile.am
test/parser/test-pxe-non-url-pathprefix-with-conf.c
test/parser/test-pxe-path-resolve-absolute.c [new file with mode: 0644]
test/parser/test-pxe-path-resolve-relative.c [new file with mode: 0644]
test/parser/test-pxe-pathprefix-discover-mac.c
test/parser/test-pxe-pathprefix-discover.c
test/parser/test-pxe-pathprefix-with-conf.c