posix/findexec.c/find_executable: path_max not needed outside #ifdef

Project:GNU Smalltalk
Component:VM
Category:bug
Priority:minor
Assigned:Unassigned
Status:won't fix
Description

At the top of find_executable, path_max is defined, but it is only used in the Darwin & Linux-specific code, not the general POSIX code, so could usefully be ifdefed itself. And then knowing that you're on Darwin or Linux, perhaps you can be more intelligent about getting the maximum length of a filename.

I suppose even better, just use asprintf. (But AFAICS, GNU Smalltalk appears not to use gnulib.)

Updates

#1 submitted by Paolo Bonzini on Mon, 11/26/2012 - 11:49
Status:active» won't fix

Not really important... Please submit a patch if you want it fixed.

User login