summaryrefslogtreecommitdiff
path: root/source3/torture/torture.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-06 18:57:27 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-07 19:16:27 +0200
commitd921200e75e90fbda2cf7ba7950ae71e09c50468 (patch)
treeaad59945d8c1ee941fc22d62c2b4865513467890 /source3/torture/torture.c
parentaf66c64e95183647bce39754089c591cbbdfbc50 (diff)
downloadsamba-d921200e75e90fbda2cf7ba7950ae71e09c50468.tar.gz
samba-d921200e75e90fbda2cf7ba7950ae71e09c50468.tar.bz2
samba-d921200e75e90fbda2cf7ba7950ae71e09c50468.zip
s3:libsmb: use clistr_pull_talloc() for short_name in interpret_long_filename()
metze
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r--source3/torture/torture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 64f8bf77b6..8f251b7f2b 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -7081,13 +7081,13 @@ static NTSTATUS shortname_list_fn(const char *mnt, struct file_info *finfo,
#endif
if (strchr(force_shortname_chars, i)) {
- if (!finfo->short_name[0]) {
+ if (!finfo->short_name) {
/* Shortname not created when it should be. */
d_printf("(%s) ERROR: Shortname was not created for file %s containing %d\n",
__location__, finfo->name, i);
s->val = true;
}
- } else if (finfo->short_name[0]){
+ } else if (finfo->short_name){
/* Shortname created when it should not be. */
d_printf("(%s) ERROR: Shortname %s was created for file %s\n",
__location__, finfo->short_name, finfo->name);