projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
common: check_create_dir(): Support symlinks as well.
[collectd.git]
/
src
/
common.c
diff --git
a/src/common.c
b/src/common.c
index
d2a1b36
..
530f733
100644
(file)
--- a/
src/common.c
+++ b/
src/common.c
@@
-542,7
+542,8
@@
int check_create_dir (const char *file_orig)
}
while (42) {
- if (stat (dir, &statbuf) == -1)
+ if ((stat (dir, &statbuf) == -1)
+ && (lstat (dir, &statbuf) == -1))
{
if (errno == ENOENT)
{