summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_registry.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/utils/net_registry.c b/source3/utils/net_registry.c
index 008d02129f..1d9546a8bd 100644
--- a/source3/utils/net_registry.c
+++ b/source3/utils/net_registry.c
@@ -1446,8 +1446,13 @@ int net_registry(struct net_context *c, int argc, const char **argv)
{ NULL, NULL, 0, NULL, NULL }
};
- if (!W_ERROR_IS_OK(registry_init_basic())) {
- return -1;
+ if (!c->display_usage
+ && (strcasecmp_m(argv[0], "convert") != 0)
+ && (strcasecmp_m(argv[0], "check") != 0))
+ {
+ if (!W_ERROR_IS_OK(registry_init_basic())) {
+ return -1;
+ }
}
ret = net_run_function(c, argc, argv, "net registry", func);