summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSameer Kibey <sameer.kibey@intel.com>2015-09-06 09:39:16 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2015-09-06 14:13:27 +0800
commitb63c28904e2568c0c50b5047b5a90d32d02b9fca (patch)
tree76c4a7ba577124bbeabd9b2242dda68950987e51 /src
parentad7b5a0233d8ead9a2ca141f3fa75f4bda1045c1 (diff)
Remove file access check in loading wrapper
Remove the check for file access in the wrapper. Otherwise this call will fail on Chrome OS with sandboxing enabled. Signed-off-by: Sameer Kibey <sameer.kibey@intel.com> Signed-off-by: Sean V Kelley <seanvk@posteo.de>
Diffstat (limited to 'src')
-rw-r--r--src/i965_drv_video.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index 1cc4775..76fbbbd 100644
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -6226,11 +6226,6 @@ i965_initialize_wrapper(VADriverContextP ctx, const char *driver_name)
memset(driver_path, 0, sizeof(driver_path));
sprintf(driver_path, "%s/%s%s", driver_dir, driver_name, DRIVER_EXTENSION);
- if (access(driver_path, F_OK)) {
- driver_dir = strtok_r(NULL, ":", &saveptr);
- continue;
- }
-
handle = dlopen(driver_path, RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE);
if (!handle) {
fprintf(stderr, "failed to open %s\n", driver_path);