[PATCH] Fix bug 12968 - smbclient tarmode doesn't work with SMB2/3.

Volker Lendecke Volker.Lendecke at SerNet.DE
Thu Aug 17 06:08:53 UTC 2017


On Wed, Aug 16, 2017 at 03:54:12PM -0700, Jeremy Allison via samba-technical wrote:
> +	if (namelen > 0 && name[namelen-1] == '\\') {
> +		char *modname = talloc_strdup(talloc_tos(), name);
> +		modname[namelen-1] = '\0';

NULL check required here I guess.

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de



More information about the samba-technical mailing list