This cange makes the following to retun none-zero value instead of a core dump. $ lslogins qwertyuiopasdfghjklzxcvbnm1234567 lslogins: libsmartcols/src/line.c:362: scols_line_get_cell: Assertion `ln' failed. Aborted (core dumped) Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- login-utils/lslogins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login-utils/lslogins.c b/login-utils/lslogins.c index 7867404..38d3cf6 100644 --- a/login-utils/lslogins.c +++ b/login-utils/lslogins.c @@ -842,7 +842,7 @@ static int get_user(struct lslogins_control *ctl, struct lslogins_user **user, const char *username) { *user = get_user_info(ctl, username); - if (!*user && errno) + if (!*user) if (IS_REAL_ERRNO(errno)) return -1; return 0; -- 2.1.3 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html