summaryrefslogtreecommitdiff
path: root/sbin/route/route.c
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2010-06-27 07:58:00 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2010-06-27 07:58:00 +0000
commit9abe95ca583eaf4911dbe6a076adf7018da1d15b (patch)
treedf13854c027c41da4bc4b01456662e33550e3bb6 /sbin/route/route.c
parent4ae5d9c550a58fc7688b9f367a5919bfe2b5b938 (diff)
Make 'route exec' emit error messages like xargs when execve() fails does.
ok claudio@
Diffstat (limited to 'sbin/route/route.c')
-rw-r--r--sbin/route/route.c3
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);
}