[PATCH conntrack 3/4] tests: conntrack: ignore dot files in testdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Got tired of having to exit the editor, before testing.

Signed-off-by: Asbjørn Sloth Tønnesen <ast@xxxxxxxxxx>
---
 tests/conntrack/test-conntrack.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/conntrack/test-conntrack.c b/tests/conntrack/test-conntrack.c
index 9d06a23..e8d2eb3 100644
--- a/tests/conntrack/test-conntrack.c
+++ b/tests/conntrack/test-conntrack.c
@@ -34,6 +34,8 @@ int main()
 	for (i=0;i<n;i++) {
 		dent = dents[i];
 
+		if (dent->d_name[0] == '.') continue;
+
 		sprintf(file, "testsuite/%s", dent->d_name);
 
 		line = 0;
-- 
2.6.4

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux