From 2b3fd5aa308e615c4bffbf7b2af457baa755f943 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 16 Mar 2020 16:13:27 +1000 Subject: [PATCH] tools: record: use the right exit code when the output file is missing Signed-off-by: Peter Hutterer --- tools/libinput-record.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libinput-record.c b/tools/libinput-record.c index 453c3ebc..6c55fb58 100644 --- a/tools/libinput-record.c +++ b/tools/libinput-record.c @@ -2582,6 +2582,7 @@ main(int argc, char **argv) if (ctx.timeout > 0 && output_arg == NULL) { fprintf(stderr, "Option --autorestart requires --output-file\n"); + rc = EXIT_INVALID_USAGE; goto out; }