diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbpasswd.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 66c80da618..3af7e56f7d 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -605,7 +605,12 @@ int main(int argc, char **argv) } if (local_flags & LOCAL_AM_ROOT) { - secrets_init(); + bool ok; + + ok = secrets_init(); + if (!ok) { + return 1; + } ret = process_root(local_flags); } else { ret = process_nonroot(local_flags); |