summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/pvfs_shortname.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-11 03:27:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:46 -0500
commitaf3866903e009271533f91470fe7d8819516b09e (patch)
tree982c5ac4cef5fc9e110d1d6c6358e09e98806823 /source4/ntvfs/posix/pvfs_shortname.c
parent4aebdb779a406bba6aa8d5665c608083e19fcf52 (diff)
downloadsamba-af3866903e009271533f91470fe7d8819516b09e.tar.gz
samba-af3866903e009271533f91470fe7d8819516b09e.tar.bz2
samba-af3866903e009271533f91470fe7d8819516b09e.zip
r2904: - fixed the old style SMBsearch to return the pvfs shortname, not a truncated long name.
- short name can be up to 12 bytes, not 11 (This used to be commit 657103ec6264bf4c2986fedd3fc6577746395d49)
Diffstat (limited to 'source4/ntvfs/posix/pvfs_shortname.c')
-rw-r--r--source4/ntvfs/posix/pvfs_shortname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_shortname.c b/source4/ntvfs/posix/pvfs_shortname.c
index ae911ad885..81cf42e71f 100644
--- a/source4/ntvfs/posix/pvfs_shortname.c
+++ b/source4/ntvfs/posix/pvfs_shortname.c
@@ -63,7 +63,7 @@ char *pvfs_short_name_component(struct pvfs_state *pvfs, const char *name)
char c1, c2;
const char *ext;
- if (strlen(name) < 12) {
+ if (strlen(name) <= 12) {
return talloc_strdup(pvfs, name);
}