wineprefixcreate: more stringent sanity check (try 2)
marcus at jet.franken.de
Fri Mar 21 03:28:18 CDT 2008
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.
...here the text ...
xmessage ... "$txt"
More information about the wine-devel