From d548b86e120db7e1327eea957a698d4bb874a1fb Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 22 Aug 2017 18:34:36 -0400 Subject: Avoid multiple extra stat()s of broken symlinks for -xtype --- bftw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bftw.c') diff --git a/bftw.c b/bftw.c index 02e7adb..d21c202 100644 --- a/bftw.c +++ b/bftw.c @@ -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); -- cgit v1.2.3