tasn pushed a commit to branch master.
http://git.enlightenment.org/core/efl.git/commit/?id=0a44c3f78b0950d8363465bb0d487ea17ee043b7
commit 0a44c3f78b0950d8363465bb0d487ea17ee043b7
Author: Vincent Torri <vincent dot torri at gmail dot com>
Date: Fri Nov 27 18:48:55 2015 +0100
Evil: fix warning
Use the USERPROFILE environment variable instead of deprecated
evil_homedir_get
function. Also set the shell to cmd.exe if the SHELL var is not found
---
src/lib/evil/evil_pwd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/lib/evil/evil_pwd.c b/src/lib/evil/evil_pwd.c
index 5b323f4..f53b1d8 100644
--- a/src/lib/evil/evil_pwd.c
+++ b/src/lib/evil/evil_pwd.c
@@ -57,10 +57,10 @@ getpwnam(const char *n)
pw.pw_name = user_name;
snprintf(user_gecos, sizeof(user_gecos), "%s,,,", user_name);
pw.pw_gecos = user_gecos;
- pw.pw_dir = (char *)evil_homedir_get();
+ pw.pw_dir = getenv("USERPROFILE");
pw.pw_shell = getenv("SHELL");
if (!pw.pw_shell)
- pw.pw_shell = "sh";
+ pw.pw_shell = "cmd.exe";
return &pw;
}
--