Zbigniew Jędrzejewski-Szmek
de02b551ad
core/condition: fix segfault when key not found in os-release
...
'ConditionOSRelease=|ID_LIKE$=*rhel*' results in a segfault.
The key 'ID_LIKE' is not present in Fedora's os-release file.
I think the most reasonable behaviour is to treat missing keys as empty.
This matches the "shell-like" sprit, since in a shell empty keys would
by default be treated as empty too. Thus, "ID_LIKE=" would match, if
ID_LIKE is not present in the file, and ID_LIKE=!$foo" would also match.
The other option would be to make those matches fail, but I think that'd
make the feature harder to use, esp. with negative matches.
Documentation is updated to clarify the new behaviour.
https://bugzilla.redhat.com/show_bug.cgi?id=2345544
2025-02-13 18:16:42 +01:00
..
2025-01-21 17:05:36 +00:00
2025-01-19 03:48:15 +09:00
2025-02-11 16:57:56 +01:00
2025-02-08 00:13:28 +00:00
2025-02-10 15:34:38 +01:00
2025-02-12 12:03:42 +01:00
2025-01-16 11:55:21 +01:00
2025-01-30 10:32:26 +01:00
2025-01-30 10:32:26 +01:00
2025-02-10 19:39:21 +01:00
2025-01-24 22:46:58 +09:00
2025-01-22 01:37:31 +01:00
2025-02-10 15:33:59 +01:00
2025-02-07 09:18:36 +09:00
2025-01-31 10:05:00 +01:00
2025-02-07 07:05:02 +02:00
2025-01-26 04:29:56 +01:00
2025-02-01 15:30:50 +09:00
2025-02-06 09:23:49 +01:00
2025-01-18 23:24:29 +01:00
2025-01-10 15:15:13 +09:00
2025-02-09 08:49:12 +01:00
2025-01-21 03:42:38 +09:00
2025-01-29 16:17:46 +00:00
2025-02-07 07:05:02 +02:00
2025-02-10 01:15:52 +01:00
2025-02-13 10:21:00 +01:00
2025-01-30 16:18:49 +00:00
2025-01-23 10:28:47 +09:00
2025-02-07 09:18:36 +09:00
2025-02-13 09:29:11 +07:00
2025-02-04 03:03:00 -08:00
2025-01-20 11:31:55 +01:00
2025-02-04 14:11:38 +01:00
2025-01-25 09:34:01 +09:00
2025-01-23 21:48:02 +01:00
2025-02-07 22:56:36 +00:00
2025-01-20 21:51:40 +01:00
2025-02-12 08:05:11 +09:00
2025-01-27 23:51:57 +01:00
2025-01-27 23:51:57 +01:00
2025-01-18 23:24:29 +01:00
2025-01-29 16:17:46 +00:00
2025-01-21 03:41:27 +09:00
2025-02-13 10:21:00 +01:00
2025-01-23 18:22:53 +09:00
2025-02-09 00:09:25 +00:00
2025-02-11 18:29:39 +09:00
2025-01-22 20:44:38 +00:00
2025-02-06 09:23:49 +01:00
2025-01-20 10:06:11 +01:00
2025-02-13 18:16:42 +01:00
2025-01-25 09:34:01 +09:00
2025-01-16 02:26:56 +01:00
2025-01-29 16:17:46 +00:00
2025-01-07 15:51:16 +01:00
2025-02-09 16:40:45 +01:00
2025-02-04 09:56:33 +01:00
2025-01-25 05:24:23 +09:00
2025-01-29 16:17:46 +00:00
2025-01-15 10:36:07 +01:00
2025-02-13 18:16:42 +01:00
2025-01-13 16:24:44 +01:00
2025-01-16 02:26:56 +01:00
2025-02-10 02:33:33 +09:00
2025-01-28 02:23:57 +01:00
2025-02-12 09:27:24 +09:00
2025-02-09 22:24:00 +00:00
2025-01-13 22:54:42 +01:00
2025-01-15 10:35:28 +01:00
2025-01-27 23:51:57 +01:00
2025-01-25 05:24:23 +09:00
2025-01-21 03:42:38 +09:00
2025-02-06 16:49:11 +01:00
2025-01-29 16:17:46 +00:00