Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen Make sure fts_statp is NULL when FTS_NOSTAT is set
details: https://anonhg.NetBSD.org/src/rev/53d7236f2917
branches: trunk
changeset: 748708:53d7236f2917
user: stacktic <stacktic%NetBSD.org@localhost>
date: Mon Nov 02 17:17:34 2009 +0000
description:
Make sure fts_statp is NULL when FTS_NOSTAT is set
diffstat:
lib/libc/gen/fts.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r f0bd9ac0749b -r 53d7236f2917 lib/libc/gen/fts.c
--- a/lib/libc/gen/fts.c Mon Nov 02 15:44:12 2009 +0000
+++ b/lib/libc/gen/fts.c Mon Nov 02 17:17:34 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fts.c,v 1.39 2009/08/16 19:33:39 christos Exp $ */
+/* $NetBSD: fts.c,v 1.40 2009/11/02 17:17:34 stacktic Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#else
-__RCSID("$NetBSD: fts.c,v 1.39 2009/08/16 19:33:39 christos Exp $");
+__RCSID("$NetBSD: fts.c,v 1.40 2009/11/02 17:17:34 stacktic Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -1054,6 +1054,9 @@
}
#endif
+ if (ISSET(FTS_NOSTAT))
+ p->fts_statp = NULL;
+
/* Copy the name plus the trailing NULL. */
memmove(p->fts_name, name, namelen + 1);
Home |
Main Index |
Thread Index |
Old Index