Quote ^foo$ on command line to protect it from the shell.
This commit is contained in:
@@ -28,7 +28,7 @@ root ALL = /bin/*at ^/var/log/[^/]+$
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Command: path, args: args start with escaped ^
|
# Command: path, args: args start with escaped ^
|
||||||
$TESTSUDOERS root /usr/bin/grep ^foo$ <<'EOF'
|
$TESTSUDOERS root /usr/bin/grep '^foo$' <<'EOF'
|
||||||
root ALL = /usr/bin/grep \^foo$
|
root ALL = /usr/bin/grep \^foo$
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user