* test/data/auth/external-root.auth-script: limit execution to unix
+2007-06-23 Ralf Habacker <ralf.habacker@freenet.de>
+
+ * dbus/dbus-auth-script.c (_dbus_auth_script_run): added UNIX_ONLY and
+ WIN_ONLY commands for auth scripts
+ * test/data/auth/external-root.auth-script: limit execution to unix
+
2007-06-21 Havoc Pennington <hp@redhat.com>
* dbus/dbus-tranport.c (auth_via_default_rules): made the verbose spam
2007-06-21 Havoc Pennington <hp@redhat.com>
* dbus/dbus-tranport.c (auth_via_default_rules): made the verbose spam
/* Ignore this comment */
goto next_iteration;
}
/* Ignore this comment */
goto next_iteration;
}
+#ifdef DBUS_WIN
+ else if (_dbus_string_starts_with_c_str (&line,
+ "WIN_ONLY"))
+ {
+ /* Ignore this line */
+ goto next_iteration;
+ }
+ else if (_dbus_string_starts_with_c_str (&line,
+ "UNIX_ONLY"))
+ {
+ /* skip this file */
+ _dbus_warn ("skipping unix only auth script\n");
+ retval = TRUE;
+ goto out;
+ }
+#endif
+#ifdef DBUS_UNIX
+ else if (_dbus_string_starts_with_c_str (&line,
+ "UNIX_ONLY"))
+ {
+ /* Ignore this line */
+ goto next_iteration;
+ }
+ else if (_dbus_string_starts_with_c_str (&line,
+ "WIN_ONLY"))
+ {
+ /* skip this file */
+ _dbus_warn ("skipping windows only auth script\n");
+ retval = TRUE;
+ goto out;
+ }
+#endif
else if (_dbus_string_starts_with_c_str (&line,
"CLIENT"))
{
else if (_dbus_string_starts_with_c_str (&line,
"CLIENT"))
{
## this tests we can auth EXTERNAL as ourselves, with root credentials
## this tests we can auth EXTERNAL as ourselves, with root credentials
SERVER
ROOT_CREDENTIALS
## 30 is ASCII '0' in hex
SERVER
ROOT_CREDENTIALS
## 30 is ASCII '0' in hex