Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-export: Provide the real path of the binding
[src/app-framework-binder.git]
/
src
/
afb-export.c
diff --git
a/src/afb-export.c
b/src/afb-export.c
index
3afd8c1
..
e679b76
100644
(file)
--- 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;
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))
/* 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);
/* 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;
export->settings = result;
return result;