diff options
author | grange <grange@openbsd.org> | 2004-05-30 16:35:22 +0000 |
---|---|---|
committer | grange <grange@openbsd.org> | 2004-05-30 16:35:22 +0000 |
commit | d74cdc85aa85aee91e905e92bb52711ac7fab3a9 (patch) | |
tree | f7f28f916448f306aad6132079cff15b23379260 /usr.sbin/hotplugd | |
parent | Missing waitpid, noticed by Gregory Steuck <greg@y2004.nest.cx>. (diff) | |
download | wireguard-openbsd-d74cdc85aa85aee91e905e92bb52711ac7fab3a9.tar.xz wireguard-openbsd-d74cdc85aa85aee91e905e92bb52711ac7fab3a9.zip |
Better error message.
Diffstat (limited to 'usr.sbin/hotplugd')
-rw-r--r-- | usr.sbin/hotplugd/hotplugd.c | 4 |
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 { |