aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/serdi.c3
1 files changed, 2 insertions, 1 deletions
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;