From 835b293d35a209d38047126443d41fa7090daa4c Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 19 Jun 2017 21:20:57 +0200 Subject: Use our own variant of 'assert' and 'assert_perror'. Our variants print stack traces on failures. This will make locating errors much easier. --- trans/password.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'trans/password.c') diff --git a/trans/password.c b/trans/password.c index 9ffcaa0a..b9f9c5bd 100644 --- a/trans/password.c +++ b/trans/password.c @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ #include -#include +#include #include #include #include @@ -151,7 +151,7 @@ S_password_check_user (struct trivfs_protid *cred, uid_t user, char *pw, char *getpass (const char *prompt, uid_t id, int is_group, void *pwd_or_group, void *hook) { - assert (! is_group && id == user); + assert_backtrace (! is_group && id == user); return strdup (pw); } @@ -199,7 +199,7 @@ S_password_check_group (struct trivfs_protid *cred, uid_t group, char *pw, char *getpass (const char *prompt, uid_t id, int is_group, void *pwd_or_group, void *hook) { - assert (is_group && id == group); + assert_backtrace (is_group && id == group); return strdup (pw); } -- cgit v1.2.3