diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-05-23 08:50:02 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-05-23 08:50:02 -0400 |
commit | ce4c6999190f4dc3c4c0b5192bb0382655b2e3bd (patch) | |
tree | c67dff05291c51ead587fcdddde8005e39d120a7 /bftw.c | |
parent | b39509d52d84ff52617dd9d3240b59cb3d8ca2d4 (diff) | |
download | bfs-ce4c6999190f4dc3c4c0b5192bb0382655b2e3bd.tar.xz |
bftw: Take dir->{dev,ino} from the right stat buffer
I don't think this can cause any observable bugs, but it's still wrong.
Diffstat (limited to 'bftw.c')
-rw-r--r-- | bftw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1097,7 +1097,7 @@ static int bftw_push(struct bftw_state *state, const char *name) { const struct BFTW *ftwbuf = &state->ftwbuf; const struct bfs_stat *statbuf = ftwbuf->stat_cache.buf; - if (!statbuf) { + if (!statbuf || (ftwbuf->stat_flags & BFS_STAT_NOFOLLOW)) { statbuf = ftwbuf->lstat_cache.buf; } if (statbuf) { |