fix cpio introduce symlinks checking function
authoryang.zhang <y0169.zhang@samsung.com>
Tue, 17 May 2016 07:18:47 +0000 (15:18 +0800)
committerSoonKyu Park <sk7.park@samsung.com>
Wed, 15 Jun 2016 05:22:19 +0000 (14:22 +0900)
Change-Id: Ic9c742b751190aa50de8a3b581d1ca34a4c107b5

init_buildsystem

index 169158d..1b3170f 100755 (executable)
@@ -208,6 +208,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
     pkg_preinstall