summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-10 16:01:35 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-10 16:01:35 +0200
commitbd64dc62908c0676d27c24151382a220a280ab23 (patch)
treec5104335cf2bef86925007ea8067cad1d4148c77
parent82afdb286b9f7088986629cb4fde0c76583d85b4 (diff)
systemd: update sd-daemon.[ch]
-rw-r--r--avahi-daemon/sd-daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-daemon/sd-daemon.c b/avahi-daemon/sd-daemon.c
index cb568b5..5df70e3 100644
--- a/avahi-daemon/sd-daemon.c
+++ b/avahi-daemon/sd-daemon.c
@@ -141,7 +141,7 @@ int sd_is_fifo(int fd, const char *path) {
struct stat st_path;
memset(&st_path, 0, sizeof(st_path));
- if (fstat(fd, &st_path) < 0) {
+ if (stat(path, &st_path) < 0) {
if (errno == ENOENT || errno == ENOTDIR)
return 0;