Skip to content

Commit 9a47aae

Browse files
committed
Fix file_open_ipc_handle()
Remove the wrong check - the paths: file_ipc_data->path and file_provider->path should be different. Signed-off-by: Lukasz Dorau <[email protected]>
1 parent e060b6d commit 9a47aae

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/provider/provider_file_memory.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,6 @@ static umf_result_t file_open_ipc_handle(void *provider, void *providerIpcData,
665665
umf_result_t ret = UMF_RESULT_SUCCESS;
666666
int fd;
667667

668-
if (strncmp(file_ipc_data->path, file_provider->path, PATH_MAX)) {
669-
return UMF_RESULT_ERROR_INVALID_ARGUMENT;
670-
}
671-
672668
fd = utils_file_open(file_ipc_data->path);
673669
if (fd == -1) {
674670
LOG_PERR("opening the file to be mapped (%s) failed",

0 commit comments

Comments
 (0)