Skip to contentSkip to conversation

Fix: wrong behavior of save command when no session name is provided

PATCH David Goulet 1 participant 1 message Jun 17, 2014 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Merged! Thanks

David

Quoted 34 lines · Jonathan Rajotte Julien

No session name and no option --all should default to --all.

---
 src/bin/lttng/commands/save.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
src/bin/lttng/commands/save.c +2 -5
index e8a4565..9be7103 100644
@@ -93,12 +93,9 @@ int cmd_save(int argc, const char **argv)
 
 	if (!opt_save_all) {
 		session_name = poptGetArg(pc);
-		if (!session_name) {
-			ERR("A session name must be provided if the \"all\" option is not used.");
-			ret = CMD_ERROR;
-			goto end;
+		if (session_name) {
+			DBG2("Session name: %s", session_name);
 		}
-		DBG2("Session name: %s", session_name);
 	}
 
 	attr = lttng_save_session_attr_create();
Signature · 7 lines
2.0.0


_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev