diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-07-06 18:57:27 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-07 19:16:27 +0200 |
commit | d921200e75e90fbda2cf7ba7950ae71e09c50468 (patch) | |
tree | aad59945d8c1ee941fc22d62c2b4865513467890 /source3/torture/masktest.c | |
parent | af66c64e95183647bce39754089c591cbbdfbc50 (diff) | |
download | samba-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/masktest.c')
-rw-r--r-- | source3/torture/masktest.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/torture/masktest.c b/source3/torture/masktest.c index 9bb34dfe45..6b9c302aa3 100644 --- a/source3/torture/masktest.c +++ b/source3/torture/masktest.c @@ -267,7 +267,8 @@ static NTSTATUS listfn(const char *mnt, struct file_info *f, const char *s, return NT_STATUS_OK; } - fstrcpy(state->short_name, f->short_name); + + fstrcpy(state->short_name, f->short_name ? f->short_name : ""); strlower_m(state->short_name); *state->pp_long_name = SMB_STRDUP(f->name); if (!*state->pp_long_name) { |