Date: Fri, 14 Mar 2014 03:34:43 +0000 (UTC) From: Devin Teske <dteske@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r263148 - head/usr.sbin/bsdconfig/usermgmt/share Message-ID: <201403140334.s2E3Yh9s051935@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dteske Date: Fri Mar 14 03:34:43 2014 New Revision: 263148 URL: http://svnweb.freebsd.org/changeset/base/263148 Log: For non-interactive scripts, forgot to check we were given an argument before proceeding. Modified: head/usr.sbin/bsdconfig/usermgmt/share/group.subr Modified: head/usr.sbin/bsdconfig/usermgmt/share/group.subr ============================================================================== --- head/usr.sbin/bsdconfig/usermgmt/share/group.subr Fri Mar 14 03:33:03 2014 (r263147) +++ head/usr.sbin/bsdconfig/usermgmt/share/group.subr Fri Mar 14 03:34:43 2014 (r263148) @@ -96,6 +96,10 @@ f_group_add() [ "$group_name" ] || f_show_err "$msg_please_enter_a_group_name" done + if [ ! "$group_name" ]; then + f_show_err "$msg_no_group_specified" + return $FAILURE + fi local group_password group_gid group_members f_getvar $VAR_GROUP_PASSWORD group_password
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403140334.s2E3Yh9s051935>