v4l2: v4l2_compat: Fix redirect from __open(at)64_2()
To avoid confusion, have `__open64_2()` and `__openat64_2()` delegate to
`open64()` and `openat64()`, respectively, instead of `open()` and
`openat()`.
This does not change the behaviour because
`V4L2CompatManager::instance()->openat()` calls `openat64()` internally,
and that adds the `O_LARGEFILE` flag unconditionally.
Fixes: 1023107b64
("v4l2: v4l2_compat: Intercept open64, openat64, and mmap64")
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
2119bdac6a
commit
bab056eb86
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ LIBCAMERA_PUBLIC int open64(const char *path, int oflag, ...)
|
||||||
|
|
||||||
LIBCAMERA_PUBLIC int __open64_2(const char *path, int oflag)
|
LIBCAMERA_PUBLIC int __open64_2(const char *path, int oflag)
|
||||||
{
|
{
|
||||||
return open(path, oflag);
|
return open64(path, oflag);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ LIBCAMERA_PUBLIC int openat64(int dirfd, const char *path, int oflag, ...)
|
||||||
|
|
||||||
LIBCAMERA_PUBLIC int __openat64_2(int dirfd, const char *path, int oflag)
|
LIBCAMERA_PUBLIC int __openat64_2(int dirfd, const char *path, int oflag)
|
||||||
{
|
{
|
||||||
return openat(dirfd, path, oflag);
|
return openat64(dirfd, path, oflag);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue