Commit 2182209a authored by Max Kellermann's avatar Max Kellermann

db/update/Walk: disable FindAncestorLoop() if device/inode==0

parent e29a8b3a
......@@ -163,6 +163,11 @@ FindAncestorLoop(Storage &storage, Directory *parent,
unsigned inode, unsigned device)
{
#ifndef WIN32
if (device == 0 && inode == 0)
/* can't detect loops if the Storage does not support
these numbers */
return 0;
while (parent) {
if (!parent->have_stat &&
!update_directory_stat(storage, *parent))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment