fix build root owner check
authorLudwig Nussel <ludwig.nussel@suse.de>
Mon, 23 Jun 2008 13:32:57 +0000 (13:32 +0000)
committerLudwig Nussel <ludwig.nussel@suse.de>
Mon, 23 Jun 2008 13:32:57 +0000 (13:32 +0000)
build

diff --git a/build b/build
index 3e9be2b..e3a9b97 100755 (executable)
--- 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