]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chsh: use getline() to support arbitrarily long lines
authorSami Kerola <kerolasa@iki.fi>
Sun, 14 Dec 2014 22:50:44 +0000 (22:50 +0000)
committerSami Kerola <kerolasa@iki.fi>
Mon, 5 Jan 2015 22:52:50 +0000 (22:52 +0000)
commit1cb122d5913e53338713ad3c4ff04b01e92725ac
treee9daae8b334547918a16533be2691c57cba9e63d
parent144ae70ef3f1fe2738d4f3ad15a62ae37fb71985
chsh: use getline() to support arbitrarily long lines

Use of fgets() can make a single long line to be understood as two
entries, and someone could play tricks with the remainder part of the
buffer.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
login-utils/chsh.c