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 <jungh.yeon@samsung.com>
#include <fcntl.h>
#include <sys/stat.h>
+#include <linux/limits.h>
#include <unzip.h>
#include <zlib.h>
namespace {
unsigned kZipBufSize = 8_kB;
-unsigned kZipMaxPath = 256;
+unsigned kZipMaxPath = PATH_MAX;
int64_t GetBlockSizeForPath(const bf::path& path_in_partition) {
struct stat stats;