summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hotplugd
diff options
context:
space:
mode:
authorgrange <grange@openbsd.org>2004-05-30 16:35:22 +0000
committergrange <grange@openbsd.org>2004-05-30 16:35:22 +0000
commitd74cdc85aa85aee91e905e92bb52711ac7fab3a9 (patch)
treef7f28f916448f306aad6132079cff15b23379260 /usr.sbin/hotplugd
parentMissing waitpid, noticed by Gregory Steuck <greg@y2004.nest.cx>. (diff)
downloadwireguard-openbsd-d74cdc85aa85aee91e905e92bb52711ac7fab3a9.tar.xz
wireguard-openbsd-d74cdc85aa85aee91e905e92bb52711ac7fab3a9.zip
Better error message.
Diffstat (limited to 'usr.sbin/hotplugd')
-rw-r--r--usr.sbin/hotplugd/hotplugd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/hotplugd/hotplugd.c b/usr.sbin/hotplugd/hotplugd.c
index 108ff133a30..7933f302db9 100644
--- a/usr.sbin/hotplugd/hotplugd.c
+++ b/usr.sbin/hotplugd/hotplugd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hotplugd.c,v 1.2 2004/05/30 16:29:41 grange Exp $ */
+/* $OpenBSD: hotplugd.c,v 1.3 2004/05/30 16:35:22 grange Exp $ */
/*
* Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
*
@@ -142,7 +142,7 @@ exec_script(const char *file, int class, char *name)
if (pid == 0) {
/* child process */
execl(file, basename(file), strclass, name, (char *)NULL);
- syslog(LOG_ERR, "execl: %m");
+ syslog(LOG_ERR, "execl %s: %m", file);
_exit(1);
/* NOTREACHED */
} else {