1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

r183: More bugfixes

(This used to be commit 88911bbcca)
This commit is contained in:
Jelmer Vernooij
2004-04-12 18:46:48 +00:00
committed by Gerald (Jerry) Carter
parent 4019324f76
commit b4d6cbd380
2 changed files with 21 additions and 28 deletions

View File

@ -39,18 +39,17 @@ static REG_KEY *cmd_set(REG_KEY *cur, int argc, char **argv)
static REG_KEY *cmd_ck(REG_KEY *cur, int argc, char **argv)
{
REG_KEY *new;
REG_KEY *new = NULL;
WERROR error;
if(argc < 2) {
new = cur;
} else {
error = reg_open_key(cur, argv[1], &new);
if(!W_ERROR_IS_OK(error)) {
DEBUG(0, ("Error opening specified key\n"));
DEBUG(0, ("Error opening specified key: %s\n", win_errstr(error)));
return NULL;
}
}
if(!new) new = cur;
}
printf("Current path is: %s\n", reg_key_get_path(new));