summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbpasswd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index bc3aaff54e..3689983444 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -602,10 +602,10 @@ int main(int argc, char **argv)
if (local_flags & LOCAL_AM_ROOT) {
secrets_init();
- return process_root(local_flags);
- }
-
- ret = process_nonroot(local_flags);
+ ret = process_root(local_flags);
+ } else {
+ ret = process_nonroot(local_flags);
+ }
TALLOC_FREE(frame);
return ret;
}