v4l2: ignore symlinks in case of openat passthrough

This commit is contained in:
Dmitry Sharshakov 2023-01-03 15:30:16 +03:00 committed by Wim Taymans
parent ba374a7b47
commit 996f8a5832

View file

@ -804,7 +804,7 @@ static int v4l2_openat(int dirfd, const char *requested_path, int oflag, mode_t
passthrough = false;
}
if (passthrough)
return globals.old_fops.openat(dirfd, path, oflag, mode);
return globals.old_fops.openat(dirfd, requested_path, oflag, mode);
pw_log_info("path:%s oflag:%d mode:%d", path, oflag, mode);