From 0245723d5f304f6bfe8ee9cfa94ad216dea78c8b Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 19 Apr 2013 10:24:50 +0000 Subject: [PATCH] run script: correction, clarity Change-Id: Ibf583c6277c67646dd90d7c49482daf4e76b78b6 --- test/run | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/run b/test/run index 122e51786..9bf5c94cb 100755 --- a/test/run +++ b/test/run @@ -28,12 +28,13 @@ alltests=" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \ sh1.sh sh2.sh interp.sh" tests_no=`expr 0` -# Directory must be owned by bin -[ "$ROOT" ] || chown bin . - # If root, make sure the setuid tests have the correct permissions -[ "$ROOT" ] && chown root ${setuids} -[ "$ROOT" ] && chmod 4755 ${setuids} +# and make the dir bin-owned. +if [ "$ROOT" ] +then chown bin . + chown root ${setuids} + chmod 4755 ${setuids} +fi tests=$alltests -- 2.44.0