From dd2b0c078d0c85eb780b28d6c40244345bb028d4 Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Mon, 9 May 2016 14:20:50 +0900 Subject: [PATCH] Change maximum length of filepath to PATH_MAX When length of file name is reaches 256, package which has it failed to install due to it. So set maximum length of filepath higher than maximum filename length to prevent it. Change-Id: I45465ace401feaecc60dfa0c7ba9e1e703a44b13 Signed-off-by: Junghyun Yeon --- src/common/utils/file_util.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/utils/file_util.cc b/src/common/utils/file_util.cc index ab41463..e996614 100644 --- a/src/common/utils/file_util.cc +++ b/src/common/utils/file_util.cc @@ -4,6 +4,7 @@ #include #include +#include #include #include @@ -27,7 +28,7 @@ namespace bf = boost::filesystem; namespace { unsigned kZipBufSize = 8_kB; -unsigned kZipMaxPath = 256; +unsigned kZipMaxPath = PATH_MAX; int64_t GetBlockSizeForPath(const bf::path& path_in_partition) { struct stat stats; -- 2.7.4