summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/profiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/profiles.c b/source3/utils/profiles.c
index 52970bdffc..6bf9e44a14 100644
--- a/source3/utils/profiles.c
+++ b/source3/utils/profiles.c
@@ -188,7 +188,7 @@ int main( int argc, char *argv[] )
exit(1);
}
- if ((!change & new_val) || (change & !new_val)) {
+ if ((!change && new_val) || (change && !new_val)) {
fprintf(stderr, "You must specify both -c and -n if one or the other is set!\n");
poptPrintUsage(pc, stderr, 0);
exit(252);
@@ -225,5 +225,5 @@ int main( int argc, char *argv[] )
poptFreeContext(pc);
- exit( 0 );
+ return( 0 );
}