From 96acf160aec88fb754606baa361b4407de066724 Mon Sep 17 00:00:00 2001 From: Deepak Kodihalli Date: Wed, 12 Jul 2017 12:21:36 -0500 Subject: vpnor: fix partition file path passed to open() Change-Id: I712699b6a5200115759eadc64a10d0b61b3d9d6f Signed-off-by: Deepak Kodihalli --- pnor_partition.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pnor_partition.cpp') diff --git a/pnor_partition.cpp b/pnor_partition.cpp index 015a951..ba0ac20 100644 --- a/pnor_partition.cpp +++ b/pnor_partition.cpp @@ -109,15 +109,13 @@ const pnor_partition* RORequest::getPartitionInfo(struct mbox_context* context, elog(); } - MSG_DBG("Couldn't open the file[%s]", path.c_str()); - // we don't get the file in the respective partition(RW/PSRV) // try to open it from RO location. fs::path partitionFilePath = context->paths.ro_loc; partitionFilePath /= partition->data.name; - rc = Request::open(path, O_RDONLY); + rc = Request::open(partitionFilePath, O_RDONLY); if (rc != ReturnCode::SUCCESS) { elog(); -- cgit v1.2.1