]> err.no Git - systemd/commitdiff
fix broken "compile warning fix"
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 10 Aug 2010 06:07:28 +0000 (08:07 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 10 Aug 2010 06:07:28 +0000 (08:07 +0200)
libudev/libudev-selinux-private.c

index be68aa1c2bd74e21b7b3aab8c94ef7fde6b7f9e2..cb06a280f7924000abeaba50b47f0b963eff0062 100644 (file)
@@ -96,7 +96,7 @@ void udev_selinux_setfscreateconat(struct udev *udev, int dfd, const char *file,
                char target[UTIL_PATH_SIZE];
                ssize_t len;
 
-               snprintf(procfd, sizeof(procfd), "/proc/%u/fd/%u", getpid(), dirfd);
+               snprintf(procfd, sizeof(procfd), "/proc/%u/fd/%u", getpid(), dfd);
                len = readlink(procfd, target, sizeof(target));
                if (len <= 0 || len == sizeof(target))
                        return;