Deleted Added
full compact
35c35
< static char sccsid[] = "@(#)fts.c 8.4 (Berkeley) 4/16/94";
---
> static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
559c559
< int cderrno, descend, len, level, maxlen, nlinks, saved_errno;
---
> int cderrno, descend, len, level, maxlen, nlinks, oflag, saved_errno;
569c569,577
< if ((dirp = opendir(cur->fts_accpath)) == NULL) {
---
> #ifdef FTS_WHITEOUT
> if (ISSET(FTS_WHITEOUT))
> oflag = DTF_NODUP|DTF_REWIND;
> else
> oflag = DTF_HIDEW|DTF_NODUP|DTF_REWIND;
> #else
> #define __opendir2(path, flag) opendir(path)
> #endif
> if ((dirp = __opendir2(cur->fts_accpath, oflag)) == NULL) {
673a682,686
> #ifdef FTS_WHITEOUT
> if (dp->d_type == DT_WHT)
> p->fts_flags |= FTS_ISW;
> #endif
>
777a791,801
> #ifdef FTS_WHITEOUT
> /* check for whiteout */
> if (p->fts_flags & FTS_ISW) {
> if (sbp != &sb) {
> memset(sbp, '\0', sizeof (*sbp));
> sbp->st_mode = S_IFWHT;
> }
> return (FTS_W);
> }
> #endif
>