mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Fixup backup folder location correctly
(cherry picked from commit 823fea02a0a168fd41b2cb292c8bef9f731e0a1d)
This commit is contained in:
parent
0fdedd9dd5
commit
881f731a2e
@ -365,7 +365,8 @@ namespace
|
||||
changed_backupfolder = true;
|
||||
}
|
||||
|
||||
if(val.find(os_file_sep())==val.size()-os_file_sep().size())
|
||||
if(val.find_last_of(os_file_sep())==val.size()-os_file_sep().size()
|
||||
&& val.size()>1)
|
||||
{
|
||||
return val.substr(0, val.size()-os_file_sep().size());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user