summaryrefslogtreecommitdiff
path: root/hald-runner
diff options
context:
space:
mode:
Diffstat (limited to 'hald-runner')
-rw-r--r--hald-runner/runner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hald-runner/runner.c b/hald-runner/runner.c
index 17b1d22b..f6454667 100644
--- a/hald-runner/runner.c
+++ b/hald-runner/runner.c
@@ -241,7 +241,7 @@ run_request_run(run_request *r, DBusConnection *con, DBusMessage *msg)
program_exists = find_program(r->argv);
if (program_exists)
- program_dir = g_path_get_dirname (r->argv);
+ program_dir = g_path_get_dirname (r->argv[0]);
if (!program_exists ||
!g_spawn_async_with_pipes(program_dir, r->argv, r->environment,