From: Lennart Poettering Date: Mon, 25 Nov 2019 17:44:40 +0000 (+0100) Subject: journalctl: return EOPNOTSUPP if pcre is not enabled X-Git-Tag: v244~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2275b747414eed2db96d9f276aa53d9a6eaf8be6;p=thirdparty%2Fsystemd.git journalctl: return EOPNOTSUPP if pcre is not enabled --- diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 6c31a895400..931cf0c7517 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':