aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.c
diff options
context:
space:
mode:
Diffstat (limited to 'pseudo.c')
-rw-r--r--pseudo.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/pseudo.c b/pseudo.c
index 3912fef..26772e6 100644
--- a/pseudo.c
+++ b/pseudo.c
@@ -1069,7 +1069,11 @@ int
pseudo_server_response(pseudo_msg_t *msg, const char *program, const char *tag, char **response_path, size_t *response_len) {
switch (msg->type) {
case PSEUDO_MSG_PING:
- msg->result = RESULT_SUCCEED;
+ /* mad hackery: if we aren't logging, the client gets told
+ * not to send open/exec notifications, which have no other
+ * purpose.
+ */
+ msg->result = opt_l ? RESULT_SUCCEED : RESULT_FAIL;
if (opt_l)
pdb_log_msg(SEVERITY_INFO, msg, program, tag, NULL);
return 0;