From 1bb7a9f736eb0c1814d2937dbd3ca5a3b8cb81b1 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 29 Sep 2003 20:25:47 +0000 Subject: [PATCH] Try to catch the case of a non-writable source directory before running configure. --- tools/wineinstall | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/wineinstall b/tools/wineinstall index 9e5444e3252..c4af41a88c7 100755 --- a/tools/wineinstall +++ b/tools/wineinstall @@ -183,6 +183,14 @@ then { } fi + if [ ! -w . ] + then { + echo "The source directory is not writable. You probably extracted the sources as root." + echo "You should remove the source tree and extract it again as a normal user." + exit 1 + } + fi + # check whether RPM installed, and if it is, remove any old wine rpm. hash rpm &>/dev/null RET=$?