Paul Millar : libwine: Fix naked getuid() to allow compilation under MinGW.
Module: wine Branch: master Commit: 8d571e28f1779c82ba91973dc540d0d7ec5ef867 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8d571e28f1779c82ba91973dc5... Author: Paul Millar <paul(a)astro.gla.ac.uk> Date: Fri Nov 9 18:07:36 2007 +0100 libwine: Fix naked getuid() to allow compilation under MinGW. --- libs/wine/config.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libs/wine/config.c b/libs/wine/config.c index 860cae2..eb187e5 100644 --- a/libs/wine/config.c +++ b/libs/wine/config.c @@ -230,7 +230,9 @@ static void init_paths(void) } } if (!S_ISDIR(st.st_mode)) fatal_error( "%s is not a directory\n", config_dir ); +#ifdef HAVE_GETUID if (st.st_uid != getuid()) fatal_error( "%s is not owned by you\n", config_dir ); +#endif init_server_dir( st.st_dev, st.st_ino ); }
participants (1)
-
Alexandre Julliard