From 21a9a476339e3ff7dd1e1026a6d454d298515bc4 Mon Sep 17 00:00:00 2001 From: "yang.zhang" Date: Wed, 16 Mar 2016 17:33:37 +0800 Subject: [PATCH] fix cpio introduce symlinks checking function Change-Id: I17fe90f5b25a726c274c7b8e56510e1b14d5d9dc --- init_buildsystem | 1 + 1 file changed, 1 insertion(+) diff --git a/init_buildsystem b/init_buildsystem index 4ceffda..6e83266 100755 --- a/init_buildsystem +++ b/init_buildsystem @@ -195,6 +195,7 @@ preinstall() else unsafe_preinstall_check CPIO="cpio --extract --unconditional --preserve-modification-time --make-directories --no-absolute-filenames --quiet" + cpio --help 2>/dev/null | grep -q -e --extract-over-symlinks && CPIO="$CPIO --extract-over-symlinks" TAR="tar -x" fi if test -e "$BUILD_ROOT/.init_b_cache/rpms/$1.rpm" ; then -- 2.7.4