From 238783623ba138d9f677bf3edb7f21477d1d5bf3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 3 Mar 2018 20:28:12 -0500 Subject: Use absolute file path in base URI --- src/serdi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/serdi.c b/src/serdi.c index 16767ffd..5c253331 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -227,7 +227,8 @@ main(int argc, char** argv) base = serd_node_new_uri_from_string( (const uint8_t*)argv[a], NULL, &base_uri); } else if (from_file && in_fd != stdin) { // Use input file URI - base = serd_node_new_file_uri(input, NULL, &base_uri, true); + const uint8_t* const path = serd_realpath(input); + base = serd_node_new_file_uri(path, NULL, &base_uri, true); } FILE* out_fd = stdout; -- cgit v1.2.1