journalctl: return EOPNOTSUPP if pcre is not enabled

This commit is contained in:
Lennart Poettering
2019-11-28 15:02:36 +01:00
parent 870a2d85d0
commit 2275b74741
+1 -1
View File
@@ -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':