loader: more stringent sanity check

Alexandre Julliard julliard at winehq.org
Fri Mar 21 03:37:02 CDT 2008

"Austin English" <austinenglish at gmail.com> writes:

> I suspect it's more often people sudo'ing. I haven't tried it, but I
> know that Alexandre committed a fix that checks if you're running with
> sudo after the inital .wine directory is made, but I'm not sure about
> what happens if you do it initially. I.e.,
> $ wineprefixcreate
> $ sudo wine notepad # gives an error about permissions
> but does:
> $ rm -rf ~/.wine
> $ sudo wine notepad
> give the same error (not at home or else I'd check).

That's a good point, we could certainly prevent running wineprefixcreate
as root in that case too, that would probably solve most of the
problem. Then people have to explicitly login as root, and in that case
I don't think we want a warning at all.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list