Files
systemd/src/shared
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
..
2024-04-18 17:39:34 +02:00
2024-12-18 13:47:35 +01:00
2024-06-11 23:17:21 +01:00
2024-10-29 18:38:42 +01:00
2024-07-16 23:12:48 +02:00
2024-04-29 18:14:41 +02:00
2024-04-29 18:14:41 +02:00
2025-01-22 14:47:57 +01:00
2024-09-03 08:49:49 +02:00
2025-01-28 03:28:26 +09:00
2025-02-09 14:51:04 +01:00
2025-02-09 14:51:04 +01:00
2024-07-16 15:03:37 +02:00
2024-12-03 14:30:01 +01:00
2024-10-24 10:17:35 +02:00
2025-02-01 14:09:06 +09:00
2024-09-21 05:10:47 +09:00