summaryrefslogtreecommitdiffstats
path: root/glib
diff options
context:
space:
mode:
authorJoe Shaw <joeshaw@novell.com>2003-02-18 22:51:35 +0000
committerJoe Shaw <joeshaw@novell.com>2003-02-18 22:51:35 +0000
commit9ada6e2cad0d623fb578f349790a0c62297d2394 (patch)
tree2925acc28c0d15a6bb8bc78909502035847476b8 /glib
parent9e1b2fe28e0f8ef49221113634d8d591d106820d (diff)
2003-02-18 Joe Shaw <joe@assbarn.com>
* dbus/dbus-auth.c (handle_server_data_stupid_test_mech): Just get credentials from our currently running process. (get_word): Fix a buglet where we were copying the entire length instead of relative to our position. * dbus/dbus-hash.c (_dbus_hash_test): Don't try to allocate the keys on the stack... it's 640k of data. * dbus/dbus-sysdeps.c (_dbus_read_credentials_unix_socket): Always read the credentials byte off the socket, even if we don't have SO_PEERCRED. (_dbus_poll): Implement poll() using select() for systems which don't have it. * glib/test-dbus-glib.c (main): Print out an error if no parameters are given. * test/data/auth/fallback.auth-script: Added. Tests that a client can fallback to a secondary auth mechanism if the first fails.
Diffstat (limited to 'glib')
-rw-r--r--glib/test-dbus-glib.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/glib/test-dbus-glib.c b/glib/test-dbus-glib.c
index 085e856c..b1ca2d3c 100644
--- a/glib/test-dbus-glib.c
+++ b/glib/test-dbus-glib.c
@@ -1,3 +1,4 @@
+/* -*- mode: C; c-file-style: "gnu" -*- */
#include "dbus-glib.h"
#include <stdio.h>
@@ -10,6 +11,12 @@ main (int argc, char **argv)
GMainLoop *loop;
+ if (argc < 2)
+ {
+ fprintf (stderr, "Give the server address as an argument\n");
+ return 1;
+ }
+
loop = g_main_loop_new (NULL, FALSE);
connection = dbus_connection_open (argv[1], &result);