common: check_create_dir(): Support symlinks as well.
authorJonathan Nieder <jrnieder@gmail.com>
Mon, 9 Jan 2012 18:01:50 +0000 (19:01 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 23 Jan 2012 20:40:14 +0000 (21:40 +0100)
commit52543e770fb2e416365998d02c4b2fc2a53dbb8e
treeabf57eae9dee45807c9f0377aaf7037b9a80a533
parentd87bf146cca2c78005cf3c915cbee3cf4a985ad9
common: check_create_dir(): Support symlinks as well.

Previously, the following situation would cause an endless look (as reported
by Michael Prokop in Debian bug #619123): the (CSV or RRD) datadir is a
symlink pointing to a non-existent target.

With this patch applied, check_create_dir() fails with "<file> exists but is
not a directory".

Signed-off-by: Sebastian Harl <sh@tokkee.org>
src/common.c