mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
Fix hang
Signed-off-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
parent
e8752ca57a
commit
21a164aa03
@ -339,7 +339,7 @@ void recursiveSync(const Path & path)
|
||||
while (!dirsToEnumerate.empty()) {
|
||||
auto currentDir = dirsToEnumerate.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();
|
||||
if (fs::is_directory(st)) {
|
||||
dirsToEnumerate.emplace_back(entry.path());
|
||||
|
Loading…
Reference in New Issue
Block a user