mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-15 10:30:40 +01:00
17 lines
555 B
Bash
Executable File
17 lines
555 B
Bash
Executable File
#!/bin/bash
|
|
# Test that '$' in double-quoted string constants raise a meaningful
|
|
# error message and do not cause rsyslog to segfault.
|
|
# added 2019-12-30 by Rainer Gerhards
|
|
# This file is part of the rsyslog project, released under ASL 2.0
|
|
. ${srcdir:=.}/diag.sh init
|
|
generate_conf
|
|
add_conf '
|
|
action(type="omfile" file="'$RSYSLOG_OUT_LOG'") # order is important ...
|
|
set $!test="test$" # ... as after this syntax error nothing is really taken up
|
|
'
|
|
startup
|
|
shutdown_when_empty
|
|
wait_shutdown
|
|
content_check '$-sign in double quotes must be escaped'
|
|
exit_test
|