diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-08-22 18:34:36 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-08-22 18:37:23 -0400 |
commit | d548b86e120db7e1327eea957a698d4bb874a1fb (patch) | |
tree | 874e34926ee12fbbf076a834d6822ab751cf378b /bftw.c | |
parent | 2a561b66f48ab4deafb0a031cad3ad541ea79449 (diff) | |
download | bfs-d548b86e120db7e1327eea957a698d4bb874a1fb.tar.xz |
Avoid multiple extra stat()s of broken symlinks for -xtype
Diffstat (limited to 'bftw.c')
-rw-r--r-- | bftw.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -551,7 +551,7 @@ static void bftw_queue_destroy(struct bftw_queue *queue) { /** Call stat() and use the results. */ static int ftwbuf_stat(struct BFTW *ftwbuf, struct stat *sb) { - int ret = xfstatat(ftwbuf->at_fd, ftwbuf->at_path, sb, &ftwbuf->at_flags); + int ret = xfstatat(ftwbuf->at_fd, ftwbuf->at_path, sb, ftwbuf->at_flags); if (ret == 0) { ftwbuf->statbuf = sb; ftwbuf->typeflag = mode_to_typeflag(sb->st_mode); |