aboutsummaryrefslogtreecommitdiff
path: root/src/librc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-19 11:24:21 +0000
committerRoy Marples <roy@marples.name>2008-09-19 11:24:21 +0000
commit6b3d8cf598f6bfcdc44dc8fede1827f469b72ead (patch)
tree6c1e1bd848dd7840a55e2efcc06805be5533b4fe /src/librc
parent600d1f62fbda7e66e6ba988cd6ecdd97c076e521 (diff)
Fix stopping wpa_supplicant incorrectly, #107
Diffstat (limited to 'src/librc')
-rw-r--r--src/librc/librc-daemon.c2
1 files changed, 1 insertions, 1 deletions
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",