~ecs/d

0a34868176cc930cd836099731dc4a226ef4b182 — Eyal Sawady 9 months ago 70752e2
Use perror on failure to exec
1 files changed, 1 insertions(+), 1 deletions(-)

M d.c
M d.c => d.c +1 -1
@@ 42,6 42,6 @@ int main(int argc, char **argv) {
	}
	setenv("HOME", pw->pw_dir, 1);
	execvp(argv[optind], argv + optind);
	fprintf(stderr, "could not exec %s\n", argv[optind]);
	perror(argv[optind]);
	return 1;
}