aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2020-12-27 00:24:18 +0000
committerEd Maste <emaste@FreeBSD.org>2020-12-27 00:27:12 +0000
commit93900fc697992f893e2e69dce0c2f67b1f66a774 (patch)
treedfbe6320eb55bb6bc9de8ffd0504e679593afd4e
parentf733d9701b7ebe3ebd7b92932ec6fb7e96d3166c (diff)
downloadsrc-93900fc697992f893e2e69dce0c2f67b1f66a774.tar.gz
src-93900fc697992f893e2e69dce0c2f67b1f66a774.zip
Fix daily_backup_gpart_exclude in periodic daily 221.backup-gpart
Since gpart_devs was not quoted (losing embedded newlines), if daily_backup_gpart_exclude matched something, gpart_devs was empty. PR: 251961 Submitted by: Kan Sasaki MFC after: 1 week
-rwxr-xr-xusr.sbin/periodic/etc/daily/221.backup-gpart2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/periodic/etc/daily/221.backup-gpart b/usr.sbin/periodic/etc/daily/221.backup-gpart
index d71bd8ffe12a..b2bfde820272 100755
--- a/usr.sbin/periodic/etc/daily/221.backup-gpart
+++ b/usr.sbin/periodic/etc/daily/221.backup-gpart
@@ -54,7 +54,7 @@ case "$daily_backup_gpart_enable" in
gpart_devs=$(gpart show | awk '$1 == "=>" { print $4 }')
if [ -n "$daily_backup_gpart_exclude" ]; then
- gpart_devs=$(echo ${gpart_devs} | grep -E -v "${daily_backup_gpart_exclude}")
+ gpart_devs=$(echo "${gpart_devs}" | grep -E -v "${daily_backup_gpart_exclude}")
fi
if [ -z "$gpart_devs" ]; then