diff options
Diffstat (limited to 'usr.sbin/hotplugd/hotplugd.c')
-rw-r--r-- | usr.sbin/hotplugd/hotplugd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/hotplugd/hotplugd.c b/usr.sbin/hotplugd/hotplugd.c index 546372e686e..bd6c1627ee8 100644 --- a/usr.sbin/hotplugd/hotplugd.c +++ b/usr.sbin/hotplugd/hotplugd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hotplugd.c,v 1.8 2008/05/12 19:15:02 pyr Exp $ */ +/* $OpenBSD: hotplugd.c,v 1.9 2008/05/25 16:49:04 jasper Exp $ */ /* * Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org> * @@ -141,9 +141,10 @@ exec_script(const char *file, int class, char *name) snprintf(strclass, sizeof(strclass), "%d", class); - if (access(file, X_OK | R_OK)) - /* do nothing if file can't be accessed */ + if (access(file, X_OK | R_OK)) { + syslog(LOG_ERR, "could not access %s", file); return; + } if ((pid = fork()) == -1) { syslog(LOG_ERR, "fork: %m"); |