On 10/27/24 7:47 PM, Emanuele Torre wrote:
In a branch of exec_builtin(), errno is not restored before printing an error message, and that causes "Success" to be printed.
Thanks for the report. The right fix for this is to suppress the exec builtin printing an error message in the cases where shell_execve() prints one. There are specific return values and values of errno where it does. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature