summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-08-10 08:07:28 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-08-10 08:07:28 +0200
commitc11f89b61a7872f640a15292a21c43504ce664da (patch)
treec1e9b718cfa4b7b94df6f7d02fc5136c5bbfb8c2
parent2d57b4f8ec53e834317518bde34cf849dabab8c4 (diff)
fix broken "compile warning fix"
-rw-r--r--libudev/libudev-selinux-private.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libudev/libudev-selinux-private.c b/libudev/libudev-selinux-private.c
index be68aa1c2b..cb06a280f7 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;