|
From: Sam S. <sd...@gn...> - 2011-07-13 15:04:11
|
> * Angel Popov <nat...@ln...> [2011-07-11 23:43:13 -0700]:
>
> Succeed to track the problem to sys::program-name
> in current lisp (sys::program-name) returns "lisp.exe", but not full path.
this is weird. I cannot reproduce this.
> Succeed to go further with this change -
>
> diff -r 1f2d73266dc5 src/execname.c
> --- a/src/execname.c Fri Jul 08 12:00:45 2011 -0400
> +++ b/src/execname.c Tue Jul 12 09:30:26 2011 +0300
> @@ -133,7 +133,7 @@
> # endif
> executable_name = (char*) malloc(MAXPATHLEN);
> if (executable_name == NULL) { errno = ENOMEM; goto notfound; }
> - if (realpath(program_name,executable_name) == NULL) {
> + if (realpath(program_name,executable_name) == NULL && errno!=ENOTDIR ) {
> free(executable_name); goto notfound;
> }
> #if defined(UNIX_CYGWIN32)
this is not good.
please fix realpath instead.
> /cygdrive/c/packages/clisp/modules/syscalls/calls.c: In function `C_subr_posix_system_info':
> /cygdrive/c/packages/clisp/modules/syscalls/calls.c:3616: error: called object is not a function
oops. my fault, fixed.
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://thereligionofpeace.com http://camera.org http://palestinefacts.org
http://www.PetitionOnline.com/tap12009/ http://jihadwatch.org
Whether pronounced "leenooks" or "line-uks", it's better than Windows.
|