diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-06-27 07:58:00 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2010-06-27 07:58:00 +0000 |
commit | 9abe95ca583eaf4911dbe6a076adf7018da1d15b (patch) | |
tree | df13854c027c41da4bc4b01456662e33550e3bb6 /sbin | |
parent | 4ae5d9c550a58fc7688b9f367a5919bfe2b5b938 (diff) |
Make 'route exec' emit error messages like xargs when execve() fails does.
ok claudio@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/route/route.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 2b8f7627841..163a85e157c 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.144 2010/05/19 13:11:25 claudio Exp $ */ +/* $OpenBSD: route.c,v 1.145 2010/06/27 07:57:59 guenther Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -1621,5 +1621,6 @@ rdomain(int argc, char **argv) if (setrdomain(tableid) == -1) err(1, "setrdomain"); execvp(*argv, argv); + warn("%s", argv[0]); return (errno == ENOENT ? 127 : 126); } |