summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-06-19 21:20:57 +0200
committerJustus Winter <justus@gnupg.org>2017-08-05 18:42:22 +0200
commit835b293d35a209d38047126443d41fa7090daa4c (patch)
tree5bf956895e6030f91cd618fb191b2151f6d25423 /auth
parentdc0b5a43224999223a246870912b0f292b1980e9 (diff)
Use our own variant of 'assert' and 'assert_perror'.
Our variants print stack traces on failures. This will make locating errors much easier.
Diffstat (limited to 'auth')
-rw-r--r--auth/auth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth/auth.c b/auth/auth.c
index d5ef5876..bc5e87aa 100644
--- a/auth/auth.c
+++ b/auth/auth.c
@@ -29,7 +29,7 @@
#include <hurd/ports.h>
#include <hurd/ihash.h>
#include <idvec.h>
-#include <assert.h>
+#include <assert-backtrace.h>
#include <argp.h>
#include <error.h>
#include <version.h>
@@ -496,7 +496,7 @@ main (int argc, char **argv)
/* Create the initial root auth handle. */
err = create_authhandle (&firstauth);
- assert_perror (err);
+ assert_perror_backtrace (err);
idvec_add (&firstauth->euids, 0);
idvec_add (&firstauth->auids, 0);
idvec_add (&firstauth->auids, 0);
@@ -505,7 +505,7 @@ main (int argc, char **argv)
/* Fetch our bootstrap port and contact the bootstrap filesystem. */
err = task_get_bootstrap_port (mach_task_self (), &boot);
- assert_perror (err);
+ assert_perror_backtrace (err);
if (boot == MACH_PORT_NULL)
error (2, 0, "auth server can only be run by init during boot");
err = startup_authinit (boot, ports_get_right (firstauth),