From: NIIMI S. <sa...@sa...> - 2006-02-06 04:19:13
|
On 2006/02/06 7:23, Juho Snellman wrote: > Thanks, committed as 0.9.9.13. Thanks, it works fine! > Is running a FreeBSD 6 binary on FreeBSD 4 (or vice versa) hopeless > for other reasons? If not, it'd be nice to make the decision of which > method to use at run-time, not compile-time. Attached patch fix it: the decision is made at run-time. BTW, I think the line in linux.c:os_get_runtime_executable_path() > size = readlink("/proc/self/exe", path, sizeof(path)); has off-by-one bug. It should be > size = readlink("/proc/self/exe", path, sizeof(path) - 1); Thanks, -- NIIMI Satoshi |