8c8429a47c
implement the "intended" SCM_CREDS stack as if we had support for that in the kernel (by-pass it almost completely). send/recv a single null byte without creds, but on recv, just do a getsockopt(SO_PEERCRED) and return that as if it coming from the cmsg. This works as long as creds are not retreived from an fd which has already been handed over to a different process via SCM_RIGHTS. It will probably not be enough in the future but we'll see then. all this work done by eric@ (thanks!) and tested by myself Enable support for g_credential* Fix a couple of warnings. ok eric@ jasper@
16 lines
559 B
Plaintext
16 lines
559 B
Plaintext
$OpenBSD: patch-glib_tests_gdatetime_c,v 1.1 2011/04/28 13:07:53 ajacoutot Exp $
|
|
|
|
gdatetime.c:774: warning: format '%ld' expects type 'long int', but argument 3 has type 'time_t'
|
|
|
|
--- glib/tests/gdatetime.c.orig Wed Apr 27 19:00:05 2011
|
|
+++ glib/tests/gdatetime.c Wed Apr 27 19:00:13 2011
|
|
@@ -771,7 +771,7 @@ GDateTime *__dt = g_date_time_new_local (2009, 10, 24,
|
|
tt.tm_min = 0;
|
|
tt.tm_hour = 0;
|
|
t = mktime (&tt);
|
|
- g_sprintf (t_str, "%ld", t);
|
|
+ g_sprintf (t_str, "%ld", (long)t);
|
|
|
|
TEST_PRINTF ("%a", "Sat");
|
|
TEST_PRINTF ("%A", "Saturday");
|