mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
Fix hang
Signed-off-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
parent
e8752ca57a
commit
21a164aa03
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ void recursiveSync(const Path & path)
|
||||||
while (!dirsToEnumerate.empty()) {
|
while (!dirsToEnumerate.empty()) {
|
||||||
auto currentDir = dirsToEnumerate.back();
|
auto currentDir = dirsToEnumerate.back();
|
||||||
dirsToEnumerate.pop_back();
|
dirsToEnumerate.pop_back();
|
||||||
for (auto & entry : std::filesystem::directory_iterator(path)) {
|
for (auto & entry : std::filesystem::directory_iterator(currentDir)) {
|
||||||
auto st = entry.symlink_status();
|
auto st = entry.symlink_status();
|
||||||
if (fs::is_directory(st)) {
|
if (fs::is_directory(st)) {
|
||||||
dirsToEnumerate.emplace_back(entry.path());
|
dirsToEnumerate.emplace_back(entry.path());
|
||||||
|
|
Loading…
Reference in a new issue