We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed110ab + eecc738 commit d72ee1aCopy full SHA for d72ee1a
priv/templates/extended_bin
@@ -617,10 +617,16 @@ RELX_CONFIG_PATH=$(check_replace_os_vars sys.config "$RELX_CONFIG_PATH")
617
# - missing -name or -sname parameters
618
# If all checks pass, extract the target node name
619
set +e
620
-TMP_NAME_ARG=$(awk 'function check_name(file)
+TMP_NAME_ARG=$(awk 'function shell_quote(str)
621
+{
622
+ gsub(/'\''/,"'\'\\\\\'\''", str);
623
+ return "'\''" str "'\''"
624
+}
625
+
626
+function check_name(file)
627
{
628
# if file exists, then it should be readable
- if (system("test -f "file) == 0 && system("test -r "file) != 0) {
629
+ if (system("test -f " shell_quote(file)) == 0 && system("test -r " shell_quote(file)) != 0) {
630
print file" not readable"
631
exit 3
632
}
0 commit comments