summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/mangle_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/torture/mangle_test.c b/source3/torture/mangle_test.c
index f31621b23b..174c7128be 100644
--- a/source3/torture/mangle_test.c
+++ b/source3/torture/mangle_test.c
@@ -150,6 +150,10 @@ static void gen_name(char *name)
s[4] = 0;
}
}
+
+ /* ..... and a 100% proability of a file not ending in "." */
+ if (p[strlen(p)-1] == '.')
+ p[strlen(p)-1] = '\0';
}