]> err.no Git - systemd/commitdiff
condition: use 'selinux' rather than 'SELinux' as preferred spelling
authorLennart Poettering <lennart@poettering.net>
Sun, 3 Apr 2011 20:18:35 +0000 (22:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 3 Apr 2011 20:18:39 +0000 (22:18 +0200)
The virtualization condition and others use lowercase identifiers, so
for the sake of keeping things least surprising, use lowercase
identifiers here too.

man/systemd.unit.xml
src/condition.c

index 73968067a1fd2d6c8e0cff940b9c8150ff19dbcd..5460ebeb2f1923755cbcfd2b625cce11d9c56178 100644 (file)
                                 may be used to check whether the given security
                                 module is enabled on the system.
                                 Currently the only recognized value is
-                                <varname>SELinux</varname>.
+                                <varname>selinux</varname>.
                                 The test may be negated by prepending an
                                 exclamation mark. Finally,
                                 <varname>ConditionNull=</varname> may
index ee0809f76d421a8ec32bb214b483f3b23a6f4c54..a520e43436d6d856b6c392e9606228e78c867cce 100644 (file)
@@ -134,7 +134,7 @@ static bool test_virtualization(const char *parameter) {
 
 static bool test_security(const char *parameter) {
 #ifdef HAVE_SELINUX
-        if (!strcasecmp(parameter, "SELinux"))
+        if (streq(parameter, "selinux"))
                 return is_selinux_enabled() > 0;
 #endif
         return false;