summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 62019d4036..3d17ec1123 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -148,15 +148,17 @@ static BOOL do_command(char *dest, char *msg_name, char *params)
fprintf(stderr,"MSG_PROFILE needs a parameter\n");
return(False);
}
- if (strequal(params, "on")) {
- v = 2;
- } else if (strequal(params, "off")) {
+ if (strequal(params, "off")) {
v = 0;
} else if (strequal(params, "count")) {
v = 1;
+ } else if (strequal(params, "on")) {
+ v = 2;
+ } else if (strequal(params, "flush")) {
+ v = 3;
} else {
fprintf(stderr,
- "MSG_PROFILE parameter must be on, off, or count\n");
+ "MSG_PROFILE parameter must be off, count, on, or flush\n");
return(False);
}
send_message(dest, MSG_PROFILE, &v, sizeof(int));