Chris Down
33e1a5d8d3
path: Improve $PATH search directory case
...
Previously:
1. last_error wouldn't be updated with errors from is_dir;
2. We'd always issue a stat(), even for binaries without execute;
3. We used stat() instead of access(), which is cheaper.
This change avoids all of those, by only checking inside X_OK-positive
case whether access() works on the path with an extra slash appended.
Thanks to Lennart for the suggestion.
2020-08-27 00:52:20 +01:00
..
2020-08-25 15:17:52 +08:00
2020-08-27 00:52:20 +01:00
2020-08-18 15:05:26 +02:00
2020-07-21 10:02:01 +09:00
2020-08-25 19:45:38 +02:00
2020-08-25 18:39:45 +02:00
2020-08-14 15:26:04 +01:00
2020-08-12 22:39:43 +02:00
2020-08-19 10:03:56 +02:00
2020-07-29 17:17:32 +01:00
2020-08-25 18:18:56 +02:00
2020-07-21 10:02:01 +09:00
2020-07-28 11:24:55 +02:00
2020-08-26 10:32:30 +02:00
2020-07-21 10:32:01 +02:00
2020-08-25 09:30:44 +02:00
2020-08-25 18:14:55 +02:00
2020-08-04 16:07:03 +02:00
2020-07-21 10:02:01 +09:00
2020-08-24 19:48:26 +02:00
2020-08-24 19:48:26 +02:00
2020-07-21 10:02:01 +09:00
2020-08-25 09:16:25 +02:00
2020-08-25 19:45:47 +02:00
2020-08-26 16:48:16 +02:00
2020-08-24 22:00:49 +02:00
2020-07-29 17:17:32 +01:00
2020-08-26 16:48:06 +02:00
2020-07-21 10:02:01 +09:00
2020-08-26 16:47:32 +02:00
2020-08-24 19:48:26 +02:00
2020-07-28 11:24:55 +02:00
2020-08-24 19:48:26 +02:00
2020-08-24 19:48:22 +02:00
2020-08-05 20:34:58 +02:00
2020-08-25 19:45:38 +02:00
2020-08-19 15:30:13 +01:00
2020-07-30 20:47:41 +02:00
2020-08-04 16:07:03 +02:00
2020-08-19 15:30:13 +01:00
2020-08-20 17:45:32 +02:00
2020-08-07 08:39:18 +02:00
2020-07-20 08:15:50 +02:00
2020-08-14 15:26:04 +01:00