From 6ab33938d5239e8688440f65e802f627622d301b Mon Sep 17 00:00:00 2001 From: James Peach Date: Mon, 24 Apr 2006 00:16:51 +0000 Subject: r15186: Introduce ISDOT and ISDOTDOT macros for testing whether a filename is "." for "..". These express the intention better that strcmp or strequal and improve searchability via cscope/ctags. (This used to be commit 7e4ad7e8e5ec266b969e3075c4ad7f021571f24e) --- source4/torture/basic/mangle_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/torture/basic') diff --git a/source4/torture/basic/mangle_test.c b/source4/torture/basic/mangle_test.c index 5eb00c076f..5f2a07e02f 100644 --- a/source4/torture/basic/mangle_test.c +++ b/source4/torture/basic/mangle_test.c @@ -21,6 +21,7 @@ #include "includes.h" #include "torture/torture.h" #include "system/filesys.h" +#include "system/dir.h" #include "lib/tdb/include/tdbutil.h" #include "libcli/libcli.h" #include "torture/util.h" @@ -130,7 +131,7 @@ static void gen_name(char *name) p[i] = 0; - if (strcmp(p, ".") == 0 || strcmp(p, "..") == 0) { + if (ISDOT(p) || ISDOTDOT(p)) { p[0] = '_'; } -- cgit