From: Ludwig Nussel Date: Mon, 23 Jun 2008 13:32:57 +0000 (+0000) Subject: fix build root owner check X-Git-Tag: obs_2.0~370 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dd13710b6924f6d960cc87456f6bb171c0532d6;p=platform%2Fupstream%2Fbuild.git fix build root owner check --- diff --git a/build b/build index 3e9be2b..e3a9b97 100755 --- a/build +++ b/build @@ -448,7 +448,7 @@ mkdir_build_root() { if [ -d "$BUILD_ROOT" ]; then # check if it is owned by root - if [ -z "$RUNNING_IN_XEN" -a \( \! -O "$BUILD_ROOT" -o \! "`stat -c %u $BUILD_ROOT`" -eq 0 ]; then + if [ -z "$RUNNING_IN_XEN" -a \! -O "$BUILD_ROOT" -a "`stat -c %u $BUILD_ROOT`" -ne 0 ]; then echo "BUILD_ROOT=$BUILD_ROOT must be owned by $USER. Exit..." cleanup_and_exit 1 fi