git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46819e2
)
dbwrap_tool: Simplify persistent/non-persistent check
author
Volker Lendecke
<vl@samba.org>
Fri, 24 Aug 2018 13:06:34 +0000
(15:06 +0200)
committer
Ralph Boehme
<slow@samba.org>
Mon, 3 Sep 2018 16:44:24 +0000
(18:44 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/utils/dbwrap_tool.c
patch
|
blob
|
history
diff --git
a/source3/utils/dbwrap_tool.c
b/source3/utils/dbwrap_tool.c
index ee08c2dc4b6dfc4a33541249d601dd3c7c7f1474..09a27dbcb510df0ef5187e66dc147c29e8b3f46a 100644
(file)
--- a/
source3/utils/dbwrap_tool.c
+++ b/
source3/utils/dbwrap_tool.c
@@
-435,9
+435,7
@@
int main(int argc, const char **argv)
goto done;
}
- if ((persistent == 0 && non_persistent == 0) ||
- (persistent == 1 && non_persistent == 1))
- {
+ if ((persistent + non_persistent) != 1) {
d_fprintf(stderr, "ERROR: you must specify exactly one "
"of --persistent and --non-persistent\n");
goto done;