Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2019 19:35:42 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r345552 - head/lib/libc/gen
Message-ID:  <201903261935.x2QJZgvQ021904@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Mar 26 19:35:41 2019
New Revision: 345552
URL: https://svnweb.freebsd.org/changeset/base/345552

Log:
  DTF_REWIND does nothing (since r247236) so retire its use
  
  Reviewed by:	cem
  Differential Revision:	https://reviews.freebsd.org/D19663

Modified:
  head/lib/libc/gen/fts-compat.c
  head/lib/libc/gen/fts-compat11.c
  head/lib/libc/gen/fts.c

Modified: head/lib/libc/gen/fts-compat.c
==============================================================================
--- head/lib/libc/gen/fts-compat.c	Tue Mar 26 19:11:15 2019	(r345551)
+++ head/lib/libc/gen/fts-compat.c	Tue Mar 26 19:35:41 2019	(r345552)
@@ -647,9 +647,9 @@ fts_build(FTS *sp, int type)
 	 */
 #ifdef FTS_WHITEOUT
 	if (ISSET(FTS_WHITEOUT))
-		oflag = DTF_NODUP | DTF_REWIND;
+		oflag = DTF_NODUP;
 	else
-		oflag = DTF_HIDEW | DTF_NODUP | DTF_REWIND;
+		oflag = DTF_HIDEW | DTF_NODUP;
 #else
 #define __opendir2(path, flag) opendir(path)
 #endif

Modified: head/lib/libc/gen/fts-compat11.c
==============================================================================
--- head/lib/libc/gen/fts-compat11.c	Tue Mar 26 19:11:15 2019	(r345551)
+++ head/lib/libc/gen/fts-compat11.c	Tue Mar 26 19:35:41 2019	(r345552)
@@ -644,9 +644,9 @@ fts_build(FTS11 *sp, int type)
 	 */
 #ifdef FTS_WHITEOUT
 	if (ISSET(FTS_WHITEOUT))
-		oflag = DTF_NODUP | DTF_REWIND;
+		oflag = DTF_NODUP;
 	else
-		oflag = DTF_HIDEW | DTF_NODUP | DTF_REWIND;
+		oflag = DTF_HIDEW | DTF_NODUP;
 #else
 #define __opendir2(path, flag) opendir(path)
 #endif

Modified: head/lib/libc/gen/fts.c
==============================================================================
--- head/lib/libc/gen/fts.c	Tue Mar 26 19:11:15 2019	(r345551)
+++ head/lib/libc/gen/fts.c	Tue Mar 26 19:35:41 2019	(r345552)
@@ -641,9 +641,9 @@ fts_build(FTS *sp, int type)
 	 */
 #ifdef FTS_WHITEOUT
 	if (ISSET(FTS_WHITEOUT))
-		oflag = DTF_NODUP | DTF_REWIND;
+		oflag = DTF_NODUP;
 	else
-		oflag = DTF_HIDEW | DTF_NODUP | DTF_REWIND;
+		oflag = DTF_HIDEW | DTF_NODUP;
 #else
 #define __opendir2(path, flag) opendir(path)
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903261935.x2QJZgvQ021904>