diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-12-03 14:58:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 14:58:20 +0100 |
commit | 6dd16814a56d2ce96ab3c4c611a61e47f2f7b663 (patch) | |
tree | 38cdececafec3b424ca0acbcd8d268e7419931e8 /test/test-path-util/script.sh | |
parent | 03d8ebb935fb989e03ec27065a16bf9b79a5816b (diff) | |
parent | ceedbf8185fc7593366679f02d31da63af8c4bd1 (diff) | |
download | systemd-6dd16814a56d2ce96ab3c4c611a61e47f2f7b663.tar.gz |
Merge pull request #17079 from keszybz/late-exec-resolution
Resolve executable paths before execution, use fexecve()
Diffstat (limited to 'test/test-path-util/script.sh')
-rwxr-xr-x | test/test-path-util/script.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test-path-util/script.sh b/test/test-path-util/script.sh new file mode 100755 index 0000000000..57c93e7476 --- /dev/null +++ b/test/test-path-util/script.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +echo "$0 $@" +test "$(basename $0)" = "script.sh" || exit 1 +test "$1" = "--version" || exit 2 +echo "Life is good" |