Make call-process work if exec-path is nil
commitf939cd025539791ad9af34b43af029a4f3d04f5f
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 14 Apr 2018 19:55:08 +0000 (14 21:55 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 14 Apr 2018 19:55:08 +0000 (14 21:55 +0200)
tree04f572aabb8254bab8f8fa3c247283ace5a44eb5
parent94b9fe59986c368ac2bb1024d3487dea73658788
Make call-process work if exec-path is nil

* src/lread.c (openp): If exec-path is nil, no files would be
found to execute (bug#30564).

Test cases:

 (let ((exec-path ()))
   (call-process "/bin/ls" nil (current-buffer)))

This would previously fail, but now works.

 (let ((exec-path '("/bin/")))
   (call-process "ls" nil (current-buffer)))

This worked, and still works.
src/lread.c