Summary
(require 'id) may load executable "id"
Metadata
- Id: 7e2e48435a04e5547da69728c058b06ae5f258ec
- Trac id: 133
- Type: defect
- Reporter: zbigniew
- Owner: evhan
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty:
- Resolution: fixed
- Priority: minor
- Milestone: 5.0
- Version: 4.3.x
- Changetime: 2016-03-19 19:44:44 UTC
- Created: 2009-11-28 01:34:24 UTC
- Keywords:
Description
There is a problem with (require) that is admittedly rare. If you are in a directory: $ ls foo foo.so
attempting to (require 'foo) will load the "foo" executable instead of "foo.so". However, in the case below: $ ls foo
attempting to (require 'foo) correctly results in an error.
The reason is that ##sys#find-extension returns "foo" in both cases and then ##sys#load attempts to load the literal path before appending any .so or .scm extension. That works unless an executable is in the way. The root cause is that find-extension knows the exact path but doesn't pass that on to load.
Priority minor because this shouldn't affect installed extensions, just development files in the current directory.
Changes and comments
[2016-01-02 02:16:46 UTC] evhan changed status from new to assigned
[2016-01-02 02:16:46 UTC] evhan set owner to evhan
[2016-01-02 02:17:37 UTC] evhan set milestone to 5.0
[2016-03-19 19:44:44 UTC] sjamaan changed status from assigned to closed
[2016-03-19 19:44:44 UTC] sjamaan set resolution to fixed
[2016-03-19 19:44:44 UTC] sjamaan wrote:
Fixed in master with a5374e0 and in chicken-5 with 6a15da5.