kernel32: treat LS_COLORS/LSCOLORS as special environmental variables
Austin English
austinenglish at gmail.com
Wed Feb 17 11:49:27 CST 2010
Similar to 2c0e31cfdcb2325c0d11ce07ecdb81fa0724b8db, should help with
http://bugs.winehq.org/show_bug.cgi?id=1490 and other similar bugs.
On one of my computers, this cuts down the size of env from 1692 to
507 (!) characters.
--
-Austin
-------------- next part --------------
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 1ef3e46..603181b 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -121,6 +121,8 @@ static inline int is_special_env_var( const char *var )
return (!strncmp( var, "PATH=", sizeof("PATH=")-1 ) ||
!strncmp( var, "PWD=", sizeof("PWD=")-1 ) ||
!strncmp( var, "HOME=", sizeof("HOME=")-1 ) ||
+ !strncmp( var, "LSCOLORS=", sizeof("LSCOLORS=")-1 ) ||
+ !strncmp( var, "LS_COLORS=", sizeof("LS_COLORS=")-1 ) ||
!strncmp( var, "TEMP=", sizeof("TEMP=")-1 ) ||
!strncmp( var, "TMP=", sizeof("TMP=")-1 ));
}
More information about the wine-patches
mailing list