diff options
author | Richard Hughes <hughsient@gmail.com> | 2006-01-29 15:03:27 +0000 |
---|---|---|
committer | Richard Hughes <hughsient@gmail.com> | 2006-01-29 15:03:27 +0000 |
commit | da1c3f946a337924e74d4644ad498c1608aca824 (patch) | |
tree | d33e0b844f758b44f87dd44bc68df630d1460c59 /hald-runner | |
parent | cb69a6d8763b1f4b96725fd3db7156efd56182a0 (diff) |
Use r->argv[0] rather than r->argv so the cwd works.
Diffstat (limited to 'hald-runner')
-rw-r--r-- | hald-runner/runner.c | 2 |
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, |