Enlightenment CVS committal
Author : xcomputerman
Project : e17
Module : apps/entrance
Dir : e17/apps/entrance/src/client
Modified Files:
entrance_session.c
Log Message:
Use the user's shell rather than /bin/sh to execute the session, and make sure the
shell is run as a login shell so that profile is correctly parsed.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/client/entrance_session.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -3 -r1.52 -r1.53
--- entrance_session.c 1 May 2004 20:44:52 -0000 1.52
+++ entrance_session.c 1 May 2004 23:31:17 -0000 1.53
@@ -344,6 +344,7 @@
pid_t pid;
char buf[PATH_MAX];
char *session_key = NULL;
+ char *shell = NULL;
Entrance_X_Session *exs = NULL;
entrance_auth_setup_environment(e->auth);
@@ -404,10 +405,11 @@
syslog(LOG_CRIT, "Unable to set group id.");
if (setuid(e->auth->pw->pw_uid))
syslog(LOG_CRIT, "Unable to set user id.");
+ shell = strdup(e->auth->pw->pw_shell);
entrance_auth_clear_pass(e->auth);
entrance_auth_free(e->auth);
e->auth = NULL;
- execl("/bin/sh", "/bin/sh", "-c", buf, NULL);
+ execl(shell, "-", "-c", buf, NULL);
exit(0);
break;
case -1:
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs