summaryrefslogtreecommitdiff
path: root/utils/login.c
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 /utils/login.c
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 'utils/login.c')
-rw-r--r--utils/login.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/login.c b/utils/login.c
index 9ee296aa..1a12c3cd 100644
--- a/utils/login.c
+++ b/utils/login.c
@@ -30,7 +30,7 @@
#include <grp.h>
#include <netdb.h>
#include <time.h>
-#include <assert.h>
+#include <assert-backtrace.h>
#include <version.h>
#include <sys/mman.h>
@@ -314,7 +314,7 @@ check_login (process_t proc_server, int lid)
if (err == ESRCH)
exit (42); /* Nothing left to watch. */
else
- assert_perror (err);
+ assert_perror_backtrace (err);
if (owned)
exit (0); /* Our task is done. */
@@ -648,7 +648,7 @@ main(int argc, char *argv[])
}
err = proc_getsid (proc_server, pid, &sid);
- assert_perror (err); /* This should never fail. */
+ assert_perror_backtrace (err); /* This should never fail. */
if (!no_login
&& (parent_uids.num != 0