fix cpio introduce symlinks checking function
authoryang.zhang <y0169.zhang@samsung.com>
Wed, 16 Mar 2016 09:33:37 +0000 (17:33 +0800)
committerSoonKyu Park <sk7.park@samsung.com>
Wed, 8 Jun 2016 05:58:17 +0000 (14:58 +0900)
Change-Id: I17fe90f5b25a726c274c7b8e56510e1b14d5d9dc

init_buildsystem

index 4ceffda66ac2fb1341c0a206db09bc2e7ef0a6ff..6e832663aca358c25def26727abc54e19d29a653 100755 (executable)
@@ -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