]> git.meshlink.io Git - catta/commitdiff
systemd: update sd-daemon.[ch]
authorLennart Poettering <lennart@poettering.net>
Sat, 10 Jul 2010 14:01:35 +0000 (16:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 10 Jul 2010 14:01:35 +0000 (16:01 +0200)
avahi-daemon/sd-daemon.c

index cb568b5e65194a08ea088d8bf03e60f7c1095220..5df70e38d524d2f5866c31f54eb84e854761d941 100644 (file)
@@ -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;