X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcommon.c;fp=src%2Fcommon.c;h=530f73309327db8f0222acf2479e78799dfb8fcb;hb=52543e770fb2e416365998d02c4b2fc2a53dbb8e;hp=d2a1b362429c4ffb5bf049437183b6b5ea328e48;hpb=d87bf146cca2c78005cf3c915cbee3cf4a985ad9;p=collectd.git diff --git a/src/common.c b/src/common.c index d2a1b362..530f7330 100644 --- 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) {