From 2a66599276133de0908f84aafc8bdceb948f8421 Mon Sep 17 00:00:00 2001 From: Milton Woods Date: Fri, 3 Sep 2021 18:55:55 +1000 Subject: [PATCH] Use canonical path to derive name of dataset --- ncdump/ncdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ncdump/ncdump.c b/ncdump/ncdump.c index f0cf351696..1d0b9a7406 100644 --- a/ncdump/ncdump.c +++ b/ncdump/ncdump.c @@ -155,7 +155,7 @@ name_path(const char *path) size_t cplen = 0; char* base = NULL; - if((cvtpath = NCpathcvt(path))==NULL) + if (NCpathcanonical(path, &cvtpath) || cvtpath==NULL) return NULL; /* See if this is a url */