From 4a35eae180f9934435ffd8d95a3f9b24c2ae70a3 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 14 Aug 2004 11:56:35 +0000 Subject: [PATCH] Clifford Wolf: Fixed pattern for 'outside basedir' check [2004080918595229848] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3873 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- scripts/Build-Pkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Build-Pkg b/scripts/Build-Pkg index b1ea18884..8daa1731d 100755 --- a/scripts/Build-Pkg +++ b/scripts/Build-Pkg @@ -817,11 +817,11 @@ abort() { if [ "$stagelevel" -le 1 ] then xbase="$( cd $xroot/ 2> /dev/null ; pwd -P )" - if egrep -qv "[ ]($base|$xbase|/tmp|/proc|/dev)(/|$)" \ + if egrep -qv "[ ]($base|$xbase|/tmp|/usr/tmp|/var/tmp|/proc|/dev)(/|$)" \ $builddir/fl_wrapper.wlog then x="Created file outside basedir: " - egrep -v "[ ]($base|$xbase|/tmp|/proc|/dev)(/|$)" \ + egrep -v "[ ]($base|$xbase|/tmp|/usr/tmp|/var/tmp|/proc|/dev)(/|$)" \ $builddir/fl_wrapper.wlog | \ cut -f2- | sort -u | sed "s,^,$x," echo "base #1: $base"