Skip to content

Commit

Permalink
Drop restrictions placed on vm.args inclusion
Browse files Browse the repository at this point in the history
OTP supports relative paths on the `-args_file` parameter, relx should not be blocking
users from using this functionality.
  • Loading branch information
lrascao committed Nov 2, 2020
1 parent f7fb61e commit 8e3d34c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions priv/templates/extended_bin
Original file line number Diff line number Diff line change
Expand Up @@ -573,21 +573,14 @@ RELX_CONFIG_PATH=$(check_replace_os_vars sys.config "$RELX_CONFIG_PATH")
set +e
TMP_NAME_ARG=$(awk 'function check_name(file)
{
if (system("test -f "file)) {
print file" not found"
exit 3
}
if (system("test -r "file)) {
# if file exists, then it should be readable
if (system("test -f "file) == 0 && system("test -r "file) != 0) {
print file" not readable"
exit 3
}
while ((getline line<file)>0) {
if (line~/^-args_file +/) {
gsub(/^-args_file +| *$/, "", line)
if (!(line~/^\//)) {
print "relative path "line" encountered in "file
exit 4
}
if (line in files) {
print "circular reference to "line" encountered in "file
exit 5
Expand Down

0 comments on commit 8e3d34c

Please sign in to comment.