forked from evolix/evocheck
Fix check_cronpath
Do not check PATH=XXX but only XXX because XXX can also be in quotes (PATH="XXX" would not be matched)
This commit is contained in:
parent
4798873ace
commit
7cb6055af5
|
@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [6.7.5] - 2020-10-09
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fix check_cronpath - Do not check PATH=XXX but only XXX because XXX can also be in quotes (PATH="XXX" would not be matched)
|
||||||
|
|
||||||
## [6.7.4] - 2020-08-04
|
## [6.7.4] - 2020-08-04
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# EvoCheck
|
# EvoCheck
|
||||||
# Script to verify compliance of an OpenBSD server powered by Evolix
|
# Script to verify compliance of an OpenBSD server powered by Evolix
|
||||||
|
|
||||||
readonly VERSION="6.7.4"
|
readonly VERSION="6.7.5"
|
||||||
|
|
||||||
# Disable LANG*
|
# Disable LANG*
|
||||||
|
|
||||||
|
@ -262,7 +262,7 @@ check_rsync(){
|
||||||
}
|
}
|
||||||
|
|
||||||
check_cronpath(){
|
check_cronpath(){
|
||||||
grep -q "PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/share/scripts" /var/cron/tabs/root || failed "IS_CRONPATH" ""
|
grep -q "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/share/scripts" /var/cron/tabs/root || failed "IS_CRONPATH" ""
|
||||||
}
|
}
|
||||||
|
|
||||||
check_tmp1777(){
|
check_tmp1777(){
|
||||||
|
|
Loading…
Reference in a new issue