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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
rrt
Reply | Threaded
Open this post in threaded view
|

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

rrt
Issue status update for
http://smalltalk.gnu.org/node/665
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/665

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    VM
 Category:     bug reports
 Priority:     minor
 Assigned to:  Unassigned
 Reported by:  rrt
 Updated by:   rrt
 Status:       active

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.)



_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [bug] posix/findexec.c/find_executable: path_max not needed outside #ifdef

Paolo Bonzini-3
Issue status update for
http://smalltalk.gnu.org/project/issue/665
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/665

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    VM
 Category:     bug reports
 Priority:     minor
 Assigned to:  Unassigned
 Reported by:  rrt
 Updated by:   bonzinip
-Status:       active
+Status:       won't fix

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



_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk