[BUG REPORT] smbclient in samba 2.0.10 mangles filenames.

Gerald (Jerry) Carter jerry at samba.org
Fri Jan 4 19:27:02 GMT 2002


On Sat, 5 Jan 2002, Alan Turner wrote:

> 1. Description
> --------------
>
> The smbclient(1) utility as shipped with samba includes a feature for
> creating tar backups of remote systems via SMB.
>
> When a file path on the remote system is exactly 99 characters long, the last
> character in the path is truncated in the tar header. This can result in
> several files in the tarfile with the same path.
>
> 2. Impact
> ---------
>
> Based on a very quick analysis of the code, it would appear that the only data
> lost is the last character of the file path. If multiple files with 99
> character path lengths were unique only in the last character, then special
> attention would be required to extract them from the tarfile (as other files
> with the same name would overwrite them in a normal extraction).
>
> 3. Versions affected
> --------------------
>
> I have verified that the bug exists in v2.0.7 (as shipped with
> debian 2.2), and in v2.0.10. The bug appears not to exist in v2.2.2.

The 2.0.x branch is officially dead.  No more updates are planned.
Since the bug does not exist in 2.2.2, I'm going to file this in the
"fixed" category.  Sound OK?

Thanks for the excellent bug report.  Very thorough.








chau, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba mailing list