chiark
/
gitweb
/
~mdw
/
preload-hacks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
noip.c (create_sockdir): Make sure the socket directory isn't a symlink.
[preload-hacks]
/
noip.c
diff --git
a/noip.c
b/noip.c
index 9c5cd689b3a1c4b821b4ca8cd18af6aabbca0ad9..72baaeef99af96aff993232bd4732df9af7fcef5 100644
(file)
--- a/
noip.c
+++ b/
noip.c
@@
-1436,13
+1436,13
@@
static void create_sockdir(void)
{
struct stat st;
{
struct stat st;
- if (stat(sockdir, &st)) {
+ if (
l
stat(sockdir, &st)) {
if (errno == ENOENT) {
if (mkdir(sockdir, 0700)) {
perror("noip: creating socketdir");
exit(127);
}
if (errno == ENOENT) {
if (mkdir(sockdir, 0700)) {
perror("noip: creating socketdir");
exit(127);
}
- if (!stat(sockdir, &st))
+ if (!
l
stat(sockdir, &st))
goto check;
}
perror("noip: checking socketdir");
goto check;
}
perror("noip: checking socketdir");