From 6b3d8cf598f6bfcdc44dc8fede1827f469b72ead Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 19 Sep 2008 11:24:21 +0000 Subject: Fix stopping wpa_supplicant incorrectly, #107 --- src/librc/librc-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librc/librc-daemon.c') diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index 95d4a5f9..ce3486e9 100644 --- a/src/librc/librc-daemon.c +++ b/src/librc/librc-daemon.c @@ -428,7 +428,7 @@ bool rc_service_started_daemon(const char *service, DIR *dp; struct dirent *d; - if (!service || !(argv && *argv)) + if (!service || !exec) return false; snprintf(dirpath, sizeof(dirpath), RC_SVCDIR "/daemons/%s", -- cgit v1.2.3