summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tools
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-21 15:54:17 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-21 15:56:26 +0100
commitd4425ecea5b4c5bc586ee53a78b386d4a57a2d21 (patch)
tree8a371543d96fed55596ab7a3238fda332d5d8090 /source4/lib/registry/tools
parentad83995de5df5a738c2fdad48866e226533b9b0a (diff)
downloadsamba-d4425ecea5b4c5bc586ee53a78b386d4a57a2d21.tar.gz
samba-d4425ecea5b4c5bc586ee53a78b386d4a57a2d21.tar.bz2
samba-d4425ecea5b4c5bc586ee53a78b386d4a57a2d21.zip
s4:regshell - don't return an error code if we get a security descriptors error
s4 itself doesn't support them so print only the error code out (in s4's case WERR_NOT_SUPPORTED).
Diffstat (limited to 'source4/lib/registry/tools')
-rw-r--r--source4/lib/registry/tools/regshell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/tools/regshell.c b/source4/lib/registry/tools/regshell.c
index 003cbd15e0..1ead1a67f4 100644
--- a/source4/lib/registry/tools/regshell.c
+++ b/source4/lib/registry/tools/regshell.c
@@ -140,8 +140,8 @@ static WERROR cmd_info(struct regshell_context *ctx, int argc, char **argv)
error = reg_get_sec_desc(ctx, ctx->current, &sec_desc);
if (!W_ERROR_IS_OK(error)) {
- printf("Error getting security descriptor\n");
- return error;
+ printf("Error getting security descriptor: %s\n", win_errstr(error));
+ return WERR_OK;
}
ndr_print_debug((ndr_print_fn_t)ndr_print_security_descriptor,
"Security", sec_desc);