* sysdeps/mach/hurd/getcwd.c: Jump out of both loops when we find a
name, instead of checking for reaching end of buffer, which happens
when the match is the last entry in the buffer.
if (err)
goto errlose;
if (st.st_dev == thisdev && st.st_ino == thisino)
- break;
+ goto found;
}
}
-
- if (offset < dirdatasize)
- /* We got a match; avoid doing another dir_readdir, which will
- hose NENTRIES. */
- break;
}
if (err)
goto errlose;
}
else
+ found:
{
/* Prepend the directory name just discovered. */