Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/file/dist/src Ignore files that start with .
details: https://anonhg.NetBSD.org/src/rev/300dbfee5105
branches: trunk
changeset: 351555:300dbfee5105
user: christos <christos%NetBSD.org@localhost>
date: Fri Feb 17 17:33:00 2017 +0000
description:
Ignore files that start with .
diffstat:
external/bsd/file/dist/src/apprentice.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 68d1aedccd27 -r 300dbfee5105 external/bsd/file/dist/src/apprentice.c
--- a/external/bsd/file/dist/src/apprentice.c Fri Feb 17 12:16:37 2017 +0000
+++ b/external/bsd/file/dist/src/apprentice.c Fri Feb 17 17:33:00 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apprentice.c,v 1.16 2017/02/10 18:06:59 christos Exp $ */
+/* $NetBSD: apprentice.c,v 1.17 2017/02/17 17:33:00 christos Exp $ */
/*
* Copyright (c) Ian F. Darwin 1986-1995.
@@ -37,7 +37,7 @@
#if 0
FILE_RCSID("@(#)$File: apprentice.c,v 1.257 2017/02/04 16:46:16 christos Exp $")
#else
-__RCSID("$NetBSD: apprentice.c,v 1.16 2017/02/10 18:06:59 christos Exp $");
+__RCSID("$NetBSD: apprentice.c,v 1.17 2017/02/17 17:33:00 christos Exp $");
#endif
#endif /* lint */
@@ -1322,6 +1322,8 @@
goto out;
}
while ((d = readdir(dir)) != NULL) {
+ if (d->d_name[0] == '.')
+ continue;
if (asprintf(&mfn, "%s/%s", fn, d->d_name) < 0) {
file_oomem(ms,
strlen(fn) + strlen(d->d_name) + 2);
Home |
Main Index |
Thread Index |
Old Index