summaryrefslogtreecommitdiffstats
path: root/bftw.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-08-22 18:34:36 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-08-22 18:37:23 -0400
commitd548b86e120db7e1327eea957a698d4bb874a1fb (patch)
tree874e34926ee12fbbf076a834d6822ab751cf378b /bftw.c
parent2a561b66f48ab4deafb0a031cad3ad541ea79449 (diff)
downloadbfs-d548b86e120db7e1327eea957a698d4bb874a1fb.tar.xz
Avoid multiple extra stat()s of broken symlinks for -xtype
Diffstat (limited to 'bftw.c')
-rw-r--r--bftw.c2
1 files changed, 1 insertions, 1 deletions
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);