summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>2000-08-29 08:22:39 +0000
committerSatoshi Asami <asami@FreeBSD.org>2000-08-29 08:22:39 +0000
commitc867f8186d640c38c5701a7749252845848d4cc9 (patch)
tree9203d58efbff73fb3854d1440722c79d1ac14bb6 /Tools
parentRun build on three branches. Check the status file filled out by (diff)
Change find command line to find potential security hazards (ports
that install setupd binaries etc.) Submitted by: kris
Notes
Notes: svn path=/head/; revision=32086
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/buildscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/portbuild/scripts/buildscript b/Tools/portbuild/scripts/buildscript
index ac1026de45da..a38f59871d46 100755
--- a/Tools/portbuild/scripts/buildscript
+++ b/Tools/portbuild/scripts/buildscript
@@ -59,10 +59,10 @@ else
mtreefile=$(make -V MTREE_FILE)
echo "================================================================"
echo "checking installed files"
- find ${prefix} -perm -2000 -o -perm -4000 -o -perm -0002 -ls | sort > /tmp/list1
+ find ${prefix} \( \( -perm -4000 -o -perm -2000 -a \! -type d \) -o \( -perm -0002 -o -perm -0020 \) \) -a \! -type l -ls | sort > /tmp/list1
echo "pkg_delete ${pkgname}"
pkg_delete ${pkgname}
- find ${prefix} -perm -2000 -o -perm -4000 -o -perm -0002 -ls | sort > /tmp/list2
+ find ${prefix} \( \( -perm -4000 -o -perm -2000 -a \! -type d \) -o \( -perm -0002 -o -perm -0020 \) \) -a \! -type l -ls | sort > /tmp/list2
if ! diff -qb /tmp/list1 /tmp/list2 2>/dev/null; then
echo "================================================================"
echo "found set[ug]id or world-writable files and directories"