]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sulogin: Use read instead of allocated size from getline()
authorGuillem Jover <guillem@hadrons.org>
Sat, 6 Jun 2015 04:26:43 +0000 (06:26 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Jun 2015 10:10:05 +0000 (12:10 +0200)
commit1c8beb3dfbb155b2cea3764a15d40fdd9038cf9f
treeea63d05e27c11721fa62b1e3ab22133a7bc49b5c
parentf51275eedbb56061b0301e901046f7d0f5aad20f
sulogin: Use read instead of allocated size from getline()

The getline function distinguishes between the allocated and read
lenghts, and we should not mix them up, as we might end up processing
junk.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
login-utils/sulogin-consoles.c