commit | 49f6d62e9d4d00b9fb582dfd2b5f824779f8ac59 | [log] [tgz] |
---|---|---|
author | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | Tue Mar 24 15:56:17 2015 +0200 |
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | Fri Mar 27 09:38:02 2015 +0200 |
tree | b5c482f10bf73c44cdcb8cbc79913b7455b0c5ca | |
parent | fb7069ee0559a89223e9bdac956ccdd413f3784e [diff] |
shared: fail reading a directory as a config file open() will happily open directories and other non-normal files. Attempting to parse them as config files makes no sense, so check that the opened file is indeed a regular file. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jonny Lamb <jonny.lamb@collabora.co.uk> Reviewed-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>