svn commit: r309899 - stable/11/usr.sbin/bsdconfig/share
Devin Teske
dteske at FreeBSD.org
Mon Dec 12 17:56:57 UTC 2016
Author: dteske
Date: Mon Dec 12 17:56:56 2016
New Revision: 309899
URL: https://svnweb.freebsd.org/changeset/base/309899
Log:
MFC r307402: Guard against bad service name argument(s) to load_rc_config()
Modified:
stable/11/usr.sbin/bsdconfig/share/sysrc.subr
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/bsdconfig/share/sysrc.subr
==============================================================================
--- stable/11/usr.sbin/bsdconfig/share/sysrc.subr Mon Dec 12 17:47:09 2016 (r309898)
+++ stable/11/usr.sbin/bsdconfig/share/sysrc.subr Mon Dec 12 17:56:56 2016 (r309899)
@@ -256,7 +256,9 @@ f_sysrc_service_configs()
last_name=
print_name() {
local name="$1"
- [ "$name" = "$last_name" ] && return
+ case "$name" in
+ ""|.|..|*/*|"$last_name") return ;;
+ esac
echo "$name" >&9
last_name="$name"
}
More information about the svn-src-stable
mailing list