Unquote default group in pw.conf.

PR: 4365
Submitted by: "Andrew L. Moore" <alm@mclink.com>
This commit is contained in:
David Nugent 1997-09-01 09:33:08 +00:00
parent 1de995bb1f
commit d3329f56fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=29002

View file

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id$
* $Id: pw_conf.c,v 1.5 1997/02/22 16:12:27 peter Exp $
*/
#include <string.h>
@ -306,6 +306,7 @@ read_userconfig(char const * file)
? (char *) bourne_shell : newstr(q);
break;
case _UC_DEFAULTGROUP:
q = unquote(q);
config.default_group = (q == NULL || !boolean_val(q, 1) || getgrnam(q) == NULL)
? NULL : newstr(q);
break;