X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-export.c;h=e679b769fd59d4064fbe14d808f1e1b1516a66e6;hb=refs%2Ftags%2Fflounder%2F5.99.3;hp=3afd8c14597fb40660228665c9da9fdfb81a6327;hpb=3aa0f4d3c4441e45317b0c825f6a917807288947;p=src%2Fapp-framework-binder.git diff --git a/src/afb-export.c b/src/afb-export.c index 3afd8c14..e679b769 100644 --- a/src/afb-export.c +++ b/src/afb-export.c @@ -229,6 +229,7 @@ static struct json_object *make_settings(struct afb_export *export) struct json_object *result; struct json_object *obj; struct afb_export *iter; + char *path; /* clone the globals */ if (json_object_object_get_ex(configuration, "*", &obj)) @@ -242,8 +243,11 @@ static struct json_object *make_settings(struct afb_export *export) /* add library path */ for (iter = export ; iter && !iter->path ; iter = iter->creator); - if (iter) - json_object_object_add(result, "binding-path", json_object_new_string(iter->path)); + if (iter) { + path = realpath(iter->path, NULL); + json_object_object_add(result, "binding-path", json_object_new_string(path)); + free(path); + } export->settings = result; return result;