author | Jonathan Nieder <jrnieder@gmail.com> | |
Mon, 9 Jan 2012 18:01:50 +0000 (19:01 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 9 Jan 2012 18:06:54 +0000 (19:06 +0100) | ||
commit | 70d546a837192a4f820f67946877dea7353c0eb2 | |
tree | 751bf98f9153dd411e185f445f1e593a9d590597 | tree | snapshot |
parent | 79226d115c1778d857a8ae5144959fc166c9c1f0 | commit | diff |
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>
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 | diff | blob | history |