Bug 4239 - Tar option strips leading period from file name
Summary: Tar option strips leading period from file name
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbclient (show other bugs)
Version: 3.0.9
Hardware: x86 Linux
: P3 normal
Target Milestone: none
Assignee: Holger Hetterich
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-20 10:05 UTC by Jonathan Fine (mail address dead)
Modified: 2020-01-06 10:43 UTC (History)
0 users

See Also:


Attachments
proposal (1.04 KB, patch)
2010-12-07 07:18 UTC, Holger Hetterich
hhetter: review? (jra)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Fine (mail address dead) 2006-11-20 10:05:00 UTC
As summary.  See below
===
[jf3243@pheasant CVSROOT]$ touch .wibble
[jf3243@pheasant CVSROOT]$ tar -cvf xxx.tar .wibble
.wibble
[jf3243@pheasant CVSROOT]$ smbclient -k //esaki/LTS-Common\$  -Txq xxx.tar
OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
restore tar file \wibble of size 0 bytes
tar: restored 1 files and directories
===
Comment 1 Holger Hetterich 2010-12-07 07:18:10 UTC
Created attachment 6121 [details]
proposal

The attached patch would fix this. However, this is questionable.
Leading periods seem to be removed by intend, to make them MSDOS compatible.

To that point I have found no hint in 

http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx#file_and_directory_names

that .foo would be an illegal filename.
Comment 2 Björn Jacke 2020-01-06 10:43:28 UTC
that is working these days without a problem.