← Commit list

ad082987d

Eric Andersen
Eric Andersen
2002-09-30
FAILED Duration: 6s

Subject

Use %m, not strerror, and strerror(err) was broken anyways and should have been strerror(errno). Problem noted by Alexey V. Neyman

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/lash.c+1 -1
@@ -1261,7 +1261,7 @@ static int pseudo_exec(struct child_prog *child)
/* Do not use perror_msg_and_die() here, since we must not
* call exit() but should call _exit() instead */
- fprintf(stderr, "%s: %s\n", child->argv[0], strerror(err));
+ fprintf(stderr, "%s: %m\n", child->argv[0]);
_exit(EXIT_FAILURE);
}