Use correct variable when detecting local sshrc template
All checks were successful
gitea/evobackup/pipeline/head This commit looks good

This commit is contained in:
Mathieu Trossevin 2024-06-03 11:26:26 +02:00
parent 201b22c145
commit 53ae37fcea
Signed by: mtrossevin
GPG key ID: D1DBB7EA828374E9
2 changed files with 2 additions and 1 deletions

View file

@ -22,6 +22,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Fixed
* Test presence of old config file before trying to delete it
* Use correct variable when detecting local sshrc template
### Security

View file

@ -294,7 +294,7 @@ setup_jail_chroot() {
[ -f "${LOCALTPLDIR}/passwd" ] && passwd="${LOCALTPLDIR}/passwd"
[ -f "${LOCALTPLDIR}/shadow" ] && shadow="${LOCALTPLDIR}/shadow"
[ -f "${LOCALTPLDIR}/group" ] && group="${LOCALTPLDIR}/group"
[ -f "${LOCALTPLDIR}/sshrc" ] && group="${LOCALTPLDIR}/sshrc"
[ -f "${LOCALTPLDIR}/sshrc" ] && sshrc="${LOCALTPLDIR}/sshrc"
cd "${jail_path}" || error "${jail_name}: failed to change directory to ${jail_path}."
umask 077