X-Git-Url: https://git.distorted.org.uk/~mdw/preload-hacks/blobdiff_plain/e4606ad60fa4997a642b1ff6cc9295eabfca565f..b514afdd4b7527370651474d952bddc41fcdf8b8:/noip.c diff --git a/noip.c b/noip.c index 9c5cd68..72baaee 100644 --- a/noip.c +++ b/noip.c @@ -1436,13 +1436,13 @@ static void create_sockdir(void) { struct stat st; - if (stat(sockdir, &st)) { + if (lstat(sockdir, &st)) { if (errno == ENOENT) { if (mkdir(sockdir, 0700)) { perror("noip: creating socketdir"); exit(127); } - if (!stat(sockdir, &st)) + if (!lstat(sockdir, &st)) goto check; } perror("noip: checking socketdir");