Skip to content

Commit

Permalink
Use canonical path to derive name of dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
mjwoods committed Sep 4, 2021
1 parent 09e0e04 commit 2a66599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ncdump/ncdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2a66599

Please sign in to comment.