mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Fix backup of file shares
This commit is contained in:
parent
3e2ff1a2fa
commit
fd0aeaa232
@ -904,12 +904,19 @@ bool IndexThread::initialCheck(const std::wstring &orig_dir, const std::wstring
|
||||
|
||||
if(first && !os_directory_exists(os_file_prefix(add_trailing_slash(dir))) )
|
||||
{
|
||||
#ifdef _WIN32
|
||||
if(getFiles(os_file_prefix(add_trailing_slash(dir))).empty())
|
||||
{
|
||||
#endif
|
||||
VSSLog(L"Cannot access directory to backup: \""+dir+L"\"", LL_ERROR);
|
||||
if(!optional)
|
||||
{
|
||||
index_error=true;
|
||||
}
|
||||
return false;
|
||||
#ifdef _WIN32
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
std::vector<SFileAndHash> files=getFilesProxy(orig_dir, dir, named_path, !first && use_db);
|
||||
|
||||
@ -699,7 +699,7 @@ std::wstring os_get_final_path(std::wstring path)
|
||||
#if (_WIN32_WINNT >= 0x0600)
|
||||
std::wstring ret;
|
||||
|
||||
if(path.find(L":")==std::string::npos)
|
||||
if(path.size()<3 && path.find(L":")==std::string::npos)
|
||||
{
|
||||
path+=L":";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user