summaryrefslogtreecommitdiffstats
path: root/lib/idcache.c
Commit message (Collapse)AuthorAgeFilesLines
* agetty: fix characters reorder in login promptKarel Zak2017-03-271-4/+0Star
| | | | | | | | | | | | | | The current agetty uses TIOCSTI ioctl to return already read chars from login name back to the terminal (without read() before tcsetattr() we will lost data already written by user). The ioctl based solution is fragile due to race -- we can return chars when terminal already contains another new chars. The result is reordered chars in login name. The solution is to use extra buffer for already read data. Reported-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/idcache: add void to function declaration [smatch scan]Sami Kerola2017-02-201-1/+1
| | | | | | | lib/idcache.c:29:29: warning: non-ANSI function declaration of function 'new_idcache' Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lib: define LOGIN_NAME_MAX fallbackRuediger Meier2016-02-181-0/+4
| | | | | | LOGIN_NAME_MAX was unused in misc-utils/namei.c since 04a5cb58. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* namei: move icache to lib/Karel Zak2015-11-271-0/+113
Signed-off-by: Karel Zak <kzak@redhat.com>