mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-25 09:41:43 +08:00
dirname should not return an empty string
This commit is contained in:
parent
861edff49a
commit
f50812a9ce
|
@ -31,7 +31,7 @@ namespace fs
|
|||
dir_has_defaults(const std::string &fullpath_)
|
||||
{
|
||||
int rv;
|
||||
std::string dirpath;
|
||||
std::string dirpath;
|
||||
|
||||
dirpath = fs::path::dirname(fullpath_);
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ namespace fs
|
|||
return 0;
|
||||
|
||||
dirname = fs::path::dirname(relative_);
|
||||
if(!dirname.empty())
|
||||
if(dirname != "/")
|
||||
{
|
||||
rv = fs::clonepath(fromsrc_,tosrc_,dirname,return_metadata_errors_);
|
||||
if(rv == -1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user