On Thu, Mar 20, 2008 at 05:25:12PM -0700, Dan Kegel wrote:
(Moved check to wineprefixcreate as Alexandre suggested.)
Many newbies mistakenly run wine as root. Catch this in wineprefixcreate and direct them to the wiki. Power users can bypass the check with --nosanitycheck. Fixes the remainder of http://bugs.winehq.org/show_bug.cgi?id=10324
+if [ $do_sanitycheck = 1 ] && [ -w / ]; then
- cat > /tmp/wineprefixcreate.$$.txt <<_EOF
Bad from a security point of view at least, its predictable and should perhaps be removed later on.
Pass it directly as argument to botyh xmessage and echo I would say.
txt=<<EOL ...here the text ... EOL
xmessage ... "$txt"
Ciao, Marcus