On Tue, 31 Jan 2006 15:02:50 +0100 (CET) "Gerald Dachs" <[EMAIL PROTECTED]> babbled:
> I don't know why I am the only one who suffers from this problem, but > anyway. On my machine entrance is crashing in a close loop, because > evas is trying to lookup modules in $HOME/.evas/modules. The > problem is, there is no $HOME before login, and the return value of > getenv is not checked against NULL: strlen(NULL) -> booom, and entranced > is starting entrance again and again and again. See what I mean in > the patch that is at the end of the mail. On enlightenment-users nobody > reacted on my mail, so I try it here again. seemingly u are the onyl one - but, fixed now. :) > Gerald > > --- evas/src/lib/file/evas_module.c.orig 2006-01-30 > 08:54:50.000000000 +0100 > +++ evas/src/lib/file/evas_module.c 2006-01-30 08:56:53.000000000 +0100 > @@ -53,15 +53,17 @@ > Evas_List *paths = NULL; > > /* 1. ~/.evas/modules/ */ > - prefix = getenv("HOME"); > - path = malloc(strlen(prefix) + 1 + strlen("/.evas/modules")); > - path[0] = 0; > - strcpy(path, prefix); > - strcat(path, "/.evas/modules"); > - if (evas_file_path_exists(path)) > - paths = evas_list_append(paths,path); > - else > - free(path); > + if ((prefix = getenv("HOME")) != NULL) > + { > + path = malloc(strlen(prefix) + 1 + strlen("/.evas/modules")); > + path[0] = 0; > + strcpy(path, prefix); > + strcat(path, "/.evas/modules"); > + if (evas_file_path_exists(path)) > + paths = evas_list_append(paths,path); > + else > + free(path); > + } > > #ifdef HAVE_DLADDR > { > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] 裸好多 Tokyo, Japan (東京 日本) ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel