severity serious
tags 385695 + patch
thanks

Upstream's configure does not detect the architecture, so that work
is handled by debian/rules for setting up a macro ALPHA to activate
the following patch.

Cheers,
-- 
 .''`.   Aurélien GÉRÔME
: :'  :
`. `'`   Free Software Developer
  `-     Unix Sys & Net Admin
#! /bin/sh /usr/share/dpatch/dpatch-run
## 18_va_list_is_not_a_pointer.dpatch by Aurélien GÉRÔME <agroxor.cx>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix va_list usage on Alpha which is not a pointer, but a struct.

@DPATCH@
diff -urNad ircd-hybrid-7.2.2~/src/s_user.c ircd-hybrid-7.2.2/src/s_user.c
--- ircd-hybrid-7.2.2~/src/s_user.c     2006-07-17 06:31:26.000000000 +0000
+++ ircd-hybrid-7.2.2/src/s_user.c      2006-09-10 22:54:19.000000000 +0000
@@ -427,8 +427,16 @@
   {
     const char *id = execute_callback(uid_get_cb, source_p);
 
-    while (hash_find_id(id) != NULL)
-      id = uid_get(NULL);
+    while (hash_find_id(id) != NULL) {
+      va_list vl;
+#ifdef ALPHA
+      vl.__base = NULL;
+      vl.__offset = 0;
+#else
+      vl = NULL;
+#endif
+      id = uid_get(vl);
+    }
 
     strlcpy(source_p->id, id, sizeof(source_p->id));
     hash_add_id(source_p);

Attachment: signature.asc
Description: Digital signature

Reply via email to