Quoth Tavian Barnes <taviana...@tavianator.com>: > --- > +static int > +do_stat(char *path, struct stat *sb, struct findhist *hist) > +{ > + if (gflags.l || (gflags.h && !hist)) { > + if (stat(path, sb) == 0) { > + return 0; > + } else if (errno != ENOENT && errno != ENOTDIR) { > + return -1; > + } > + } > + > + return lstat(path, sb); > +} > +
This seems ok to me. Unless someone complains I will apply it. Regards,