mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
fix broken "compile warning fix"
This commit is contained in:
parent
2d57b4f8ec
commit
c11f89b61a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user