Enlightenment CVS committal Author : raster Project : e17 Module : apps/entrance
Dir : e17/apps/entrance/src/client Modified Files: entrance_auth.c entrance_session.c Log Message: it's the clearenv. now entrance will inherit $PATH from its launching script etc. etc. etc. =================================================================== RCS file: /cvs/e/e17/apps/entrance/src/client/entrance_auth.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- entrance_auth.c 26 Oct 2006 08:05:55 -0000 1.27 +++ entrance_auth.c 3 Nov 2006 14:36:45 -0000 1.28 @@ -389,12 +389,15 @@ return; /* clearenv() is only availble in glibc */ + /* FIXME: this will nuke any PATH from the system or anything else we try + * and inherit - disable for now. we basically end up with things like an + * emprt $PATH for logins for people #if HAVE_CLEARENV clearenv(); #else environ = NULL; #endif - + */ e->env = environ; snprintf(buf, PATH_MAX, "%s/.Xauthority", e->pw->pw_dir); setenv("XAUTHORITY", buf, 1); =================================================================== RCS file: /cvs/e/e17/apps/entrance/src/client/entrance_session.c,v retrieving revision 1.91 retrieving revision 1.92 diff -u -3 -r1.91 -r1.92 --- entrance_session.c 26 Oct 2006 08:05:55 -0000 1.91 +++ entrance_session.c 3 Nov 2006 14:36:45 -0000 1.92 @@ -871,6 +871,8 @@ syslog(LOG_NOTICE, "Neither '%s' or '/bin/sh' are working login shells for user '%s'. Your session may not function properly. ", shell, user); + shell_cmd = strdup("/bin/sh"); + res = execlp(shell_cmd, shell_cmd, "-c", buf, NULL); /* Damn, that didn't work either. * Bye! We call it quits and log an error ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs