Alexandre Julliard : libwine: Refuse to use a WINEPREFIX dir owned by a different user.

Alexandre Julliard julliard at winehq.org
Thu Nov 8 07:07:39 CST 2007


Module: wine
Branch: master
Commit: 65d865d96313d96889bf8cbe88c931b5e1e9bb74
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=65d865d96313d96889bf8cbe88c931b5e1e9bb74

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Nov  8 12:21:10 2007 +0100

libwine: Refuse to use a WINEPREFIX dir owned by a different user.

---

 libs/wine/config.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libs/wine/config.c b/libs/wine/config.c
index 5f8f31c..860cae2 100644
--- a/libs/wine/config.c
+++ b/libs/wine/config.c
@@ -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 );
 }




More information about the wine-cvs mailing list