mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:40:48 +00:00
libwine: Refuse to use a WINEPREFIX dir owned by a different user.
This commit is contained in:
parent
9adf83e90d
commit
65d865d963
|
@ -230,6 +230,7 @@ static void init_paths(void)
|
|||
}
|
||||
}
|
||||
if (!S_ISDIR(st.st_mode)) fatal_error( "%s is not a directory\n", config_dir );
|
||||
if (st.st_uid != getuid()) fatal_error( "%s is not owned by you\n", config_dir );
|
||||
|
||||
init_server_dir( st.st_dev, st.st_ino );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue