Code

sysdb: Don't exit if the server closed the connection.
[sysdb.git] / src / tools / sysdb / input.h
index 0ba5c0a4dd385169fc439c1fe133b33464f609a8..eb13043b4cea2acb948cc3ec031f075311cbb818 100644 (file)
@@ -33,6 +33,7 @@
 
 typedef struct {
        sdb_client_t *client;
+       const char *user;
 
        sdb_strbuf_t *input;
        size_t tokenizer_pos;
@@ -42,7 +43,7 @@ typedef struct {
        bool eof;
 } sdb_input_t;
 
-#define SDB_INPUT_INIT { NULL, NULL, 0, 0, 1, 0 }
+#define SDB_INPUT_INIT { NULL, NULL, NULL, 0, 0, 1, 0 }
 
 /*
  * sysdb_input: