implement "no ident".

This commit is contained in:
mrg 2014-05-29 07:47:45 +00:00
parent 955b6c1f27
commit ebf7669ed7
3 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: config.5,v 1.22 2014/02/13 22:36:28 wiz Exp $ .\" $NetBSD: config.5,v 1.23 2014/05/29 07:47:45 mrg Exp $
.\" .\"
.\" Copyright (c) 2006, 2007 The NetBSD Foundation. .\" Copyright (c) 2006, 2007 The NetBSD Foundation.
.\" All rights reserved. .\" All rights reserved.
@ -587,6 +587,8 @@ prefix
Defines the indentification string of the kernel. Defines the indentification string of the kernel.
This statement is optional, and the name of the main configuration file will be This statement is optional, and the name of the main configuration file will be
used as a default value. used as a default value.
.It Ic no ident
Deletes any pre-existing indentification string of the kernel.
.It Ic maxusers Ar number .It Ic maxusers Ar number
Despite its name, this statement does not limit the maximum number of users on Despite its name, this statement does not limit the maximum number of users on
the system. the system.

View File

@ -1,5 +1,5 @@
%{ %{
/* $NetBSD: gram.y,v 1.38 2013/08/11 10:37:08 pooka Exp $ */ /* $NetBSD: gram.y,v 1.39 2014/05/29 07:47:45 mrg Exp $ */
/* /*
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
@ -627,6 +627,7 @@ config_item:
| OPTIONS opt_list | OPTIONS opt_list
| MAXUSERS NUMBER { setmaxusers($2.val); } | MAXUSERS NUMBER { setmaxusers($2.val); }
| IDENT stringvalue { setident($2); } | IDENT stringvalue { setident($2); }
| NO IDENT { setident(NULL); }
| CONFIG conf root_spec sysparam_list | CONFIG conf root_spec sysparam_list
{ addconf(&conf); } { addconf(&conf); }
| NO CONFIG WORD { delconf($3); } | NO CONFIG WORD { delconf($3); }

View File

@ -1,4 +1,4 @@
/* $NetBSD: sem.c,v 1.42 2013/08/11 10:37:08 pooka Exp $ */ /* $NetBSD: sem.c,v 1.43 2014/05/29 07:47:45 mrg Exp $ */
/* /*
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
@ -181,7 +181,10 @@ void
setident(const char *i) setident(const char *i)
{ {
ident = intern(i); if (i)
ident = intern(i);
else
ident = NULL;
} }
/* /*