Date: Mon, 12 Dec 2016 17:56:56 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r309899 - stable/11/usr.sbin/bsdconfig/share Message-ID: <201612121756.uBCHuuaZ052611@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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" }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612121756.uBCHuuaZ052611>