[PATCH] regshell.c: fix a bug of predef

Jelmer Vernooij jelmer at samba.org
Tue Aug 6 19:47:30 MDT 2013


On Wed, Aug 07, 2013 at 09:07:57AM +0800, Peng Haitao wrote:
> 'predefined' should be replaced with 'ch' according to manpage.
> 
> Signed-off-by: Peng Haitao <penght at cn.fujitsu.com>
> ---
>  source4/lib/registry/tools/regshell.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/source4/lib/registry/tools/regshell.c b/source4/lib/registry/tools/regshell.c
> index dd154f7..e9d43d7 100644
> --- a/source4/lib/registry/tools/regshell.c
> +++ b/source4/lib/registry/tools/regshell.c
> @@ -379,7 +379,7 @@ static struct {
>  	{"set", "update", "Update value", cmd_set },
>  	{"help", "?", "Help", cmd_help },
>  	{"exit", "quit", "Exit", cmd_exit },
> -	{"predef", "predefined", "Go to predefined key", cmd_predef },
> +	{"predef", "ch", "Go to predefined key", cmd_predef },
>  	{NULL }
>  };
I think the manpage should be considered outdated in this case. It
probably wasn't updated after we changed regshell.c.

"ch" refers to "change hive". A predefined key sometimes, but not
always, refers to a hive.

Cheers,

Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130807/d52193f6/attachment.pgp>


More information about the samba-technical mailing list