From c11f89b61a7872f640a15292a21c43504ce664da Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Tue, 10 Aug 2010 08:07:28 +0200 Subject: [PATCH] fix broken "compile warning fix" --- libudev/libudev-selinux-private.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libudev/libudev-selinux-private.c b/libudev/libudev-selinux-private.c index be68aa1c..cb06a280 100644 --- a/libudev/libudev-selinux-private.c +++ b/libudev/libudev-selinux-private.c @@ -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; -- 2.39.5