]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: add canonicalize test
authorKarel Zak <kzak@redhat.com>
Tue, 1 Jul 2025 10:00:40 +0000 (12:00 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Sep 2025 11:49:09 +0000 (13:49 +0200)
commitd44a1ee0049ceea7f3b98ee2293db8562cd81f23
tree94c358f2e2f5d907fa3be2a9311d67aa7995754e
parentccae72b465824e9f76ff8b05cc1c692c995a7d01
tests: add canonicalize test

* add canonicalize_path_restricted() to test_canonicalize program

* add test for root and non-root (but suid) user

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/canonicalize.c
tests/commands.sh
tests/expected/misc/canonicalize-non-root-user [new file with mode: 0644]
tests/expected/misc/canonicalize-root-user [new file with mode: 0644]
tests/ts/misc/canonicalize [new file with mode: 0755]