Skip to content

Commit

Permalink
set_config_param: fix settings with spaces
Browse files Browse the repository at this point in the history
bareos-config set_config_param did not quote the parameter enough.
This patch fixes this.
  • Loading branch information
joergsteffens committed Sep 19, 2016
1 parent ee95636 commit 185472f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/bareos-config-lib.sh.in
Expand Up @@ -452,9 +452,9 @@ set_config_param()
fi

if [ -d "${CONFIG_PATH}" ]; then
set_config_param_in_directory "${CONFIG_PATH}" ${SECTION} ${NAME} ${PARAM} ${VALUE}
set_config_param_in_directory "${CONFIG_PATH}" "${SECTION}" "${NAME}" "${PARAM}" "${VALUE}"
else
set_config_param_in_file "${CONFIG_PATH}" ${SECTION} ${NAME} ${PARAM} ${VALUE}
set_config_param_in_file "${CONFIG_PATH}" "${SECTION}" "${NAME}" "${PARAM}" "${VALUE}"
fi

return
Expand All @@ -478,7 +478,7 @@ set_config_param_in_directory()
if ! [ -f "${FILE}" ]; then
printf "%s {\n Name = %s\n}\n" "${SECTION}" "${NAME}" > "${FILE}"
fi
set_config_param_in_file "${FILE}" ${SECTION} ${NAME} ${PARAM} ${VALUE}
set_config_param_in_file "${FILE}" "${SECTION}" "${NAME}" "${PARAM}" "${VALUE}"
return $?
}

Expand Down

0 comments on commit 185472f

Please sign in to comment.