shl: handle pathconf() errors
authorLubomir Rintel <lkundrak@v3.sk>
Sat, 24 May 2014 19:19:33 +0000 (21:19 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 25 May 2014 09:42:27 +0000 (11:42 +0200)
commit41e76d11dff6dd9bc08bf829751f9634f32cdd38
tree1aa8553ed328071a50ce4a32ac2387f998e93f68
parent012be880fcb34d5c206bfbc9b00cd36e013aa2eb
shl: handle pathconf() errors

It can return -1 (feature not supported, denied by a security module, etc.),
resulting in wrong allocation later on.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
(remove superfluous errno-checks)
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/kmscon_module.c
src/shl_misc.h