]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lslogins: fix assertion failure for none existing logins
authorSami Kerola <kerolasa@iki.fi>
Mon, 8 Dec 2014 22:20:55 +0000 (22:20 +0000)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Dec 2014 08:19:39 +0000 (09:19 +0100)
commit123f0f5bf00635e5dd7e5cbc73f906bf2a0bed9c
tree584fd733c29be7588b11fdf6488f5371bf662d5d
parentfad25f02a336c5951fbf43ac6183c28b75f98b06
lslogins: fix assertion failure for none existing logins

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@iki.fi>
login-utils/lslogins.c