Browse Source
Merge pull request #856 from trapexit/dirname
dirname should not return an empty string
pull/857/head
2.32.2
trapexit
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
src/fs_acl.cpp
-
src/fs_clonepath.cpp
|
|
@ -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) |
|
|
|