]> git.sesse.net Git - plocate/blobdiff - conf.cpp
Replace canonicalize_file_name() with realpath().
[plocate] / conf.cpp
index abea68a4f328ae89b9ffed74ddcd5b643e594416..695af67823212b0a0088488ac94f74f7de05ef5a 100644 (file)
--- a/conf.cpp
+++ b/conf.cpp
@@ -479,7 +479,7 @@ parse_arguments(int argc, char *argv[])
                        if (conf_scan_root != NULL)
                                error(EXIT_FAILURE, 0, _("--%s specified twice"),
                                      "database-root");
-                       conf_scan_root = canonicalize_file_name(optarg);
+                       conf_scan_root = realpath(optarg, nullptr);
                        if (conf_scan_root == NULL)
                                error(EXIT_FAILURE, errno, _("invalid value `%s' of --%s"), optarg,
                                      "database-root");