From 2275b747414eed2db96d9f276aa53d9a6eaf8be6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 Nov 2019 18:44:40 +0100 Subject: [PATCH] journalctl: return EOPNOTSUPP if pcre is not enabled --- src/journal/journalctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 6c31a89540..931cf0c751 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -843,7 +843,7 @@ static int parse_argv(int argc, char *argv[]) { #else case 'g': case ARG_CASE_SENSITIVE: - return log_error("Compiled without pattern matching support"); + return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), "Compiled without pattern matching support"); #endif case 'S':