Subject: B20.1: tar and long filenames
From: Ralf Fassel <[email-masked]>
To: [email-masked]
Date: Wed, 18 Aug 1999 18:00:44 +0200 (MDT)

G'day,
I have a problem unpacking a tar archive on NT 4.0 SP3 with the `tar'
command included in Cygwin 20.1.

The archive was created using tar (GNU tar) 1.12 on IRIX 6.5, and
contains some long filenames (directory+file > 100 characters).  It
unpacks correctly on UNIX and on NT when using NutCracker tar.

However, when using the Cygwin 20.1 tar binary, unpacking this archive
on NT does not handle the long filenames correctly: they end up in the
current working directory, whereas filenames < 100 chars are handled
correctly.

Is this a known problem?  Is there a workaround?  I haven't found
anything on the Cygwin mailinglists, so I'm not quite sure whether I'm
doing something wrong here.  Cygwin was installed as-is out of the
usertools.exe archive (see below).

Since I'm not on the mailinglists, a complimentary CC of any response
would be nice, but I'll check the archives too.

Thanks for listening...
R'
--------------------------------
cygcheck -s -v -r > cygcheck.out

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Aug 18 17:54:58 1999

WinNT Ver 4.0 build 1381 Service Pack 4

Path:	/cygnus/CYGWIN~1/H-I586~1/bin
	/programme/devstudio/sharedide/bin/ide
	/programme/devstudio/sharedide/bin
	/Programme/InstallShield/InstallShield 5.1 Professional Edition/Program
	/local/bin
	/PROGRA~1/Tcl/bin
	/home/rene/bin
	//G/home/rene/aegis/si++.C171/bin/winnt
	/NuTCROOT/mksnt
	/programme/devstudio/sharedide/bin/ide
	/programme/devstudio/sharedide/bin
	/programme/devstudio/vc/bin
	/NTRESKIT
	/NTRESKIT/Perl
	/WINNT
	/WINNT/System32

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME = `/home/rene'
MAKE_MODE = `UNIX'
PWD = `//s/tmp'
TCL_LIBRARY = `G:\home\rene\aegis\si++.C171\lib\tcl80'

!C: = `C:\WINNT\Profiles\rene\Desktop'
CLASSPATH = `C:\Programme\Maestro.nt\hcljrcsv.zip;C:\Programme\Maestro.nt'
CNR = `C171'
COMPUTERNAME = `NEPTUN'
COMSPEC = `C:\WINNT\system32\cmd.exe'
DEBUGFLAGS = `YES'
DOC = `o:\atg\si++3.4\doc\manual'
DSIXXBASE = `G:\home\rene\aegis\si++.C171'
EMACSDATA = `C:\PROGRA~1\TSHG\GNU\emacs\etc'
EMACSDOC = `C:\PROGRA~1\TSHG\GNU\emacs\etc'
EMACSLOADPATH = `C:\PROGRA~1\TSHG\GNU\emacs\lisp'
EMACSLOCKDIR = `c:\temp'
EMACSPATH = `C:\PROGRA~1\TSHG\GNU\bin'
GCC_EXEC_PREFIX-UNUSED = `//C/OpenNT/usr/contrib/i386-pc-opennt/cygnus-2.7.2-970404/'
HASHBANG = `1'
HOMEDRIVE = `c:'
HOMEPATH = `\home\rene'
HOSTNAME = `neptun'
HOSTTYPE = `i586'
INCLUDE = `c:\programme\devstudio\vc\atl\include;c:\programme\devstudio\vc\mfc\include;c:\programme\devstudio\vc\include;%include%'
INFOPATH = `C:\PROGRA~1\TSHG\GNU\info'
LANG = `de'
LIB = `c:\programme\devstudio\vc\mfc\lib;c:\programme\devstudio\vc\lib;c:\programme\devstudio\vc\mfc\lib;c:\programme\devstudio\vc\lib;%lib%'
LM_LICENSE_FILE-XX = `c:\tmp\license.dat'
LOGONSERVER = `\\NEPTUN'
MACHTYPE = `i586-pc-cygwin32'
MANPATH = `%SIXXBASE%/man'
MSDEVDIR = `C:\Programme\DevStudio\SharedIDE'
NCDIR = `C:\NuTC'
NUMBER_OF_PROCESSORS = `2'
NUTC = `C:\NuTC'
NUTCROOT = `C:\NuTCROOT'
NUTC_VALIDATE_HEAPS = `1'
NUT_DEFAULT_WIN32_FAULT = `1'
NUT_DEFAULT_WIN32_FAULT_OFF = `empty is OFF, any other value is ON'
OPENNT_ROOT = `//C/OpenNT'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `cygwin32'
PATH-NUTC = `c:\local\sibin;C:\NuTC\mksnt;C:\NuTC\bin;C:\WINNT\system32;C:\WINNT;C:\Programme\Maestro.nt;C:\NTRESKIT;C:\NTRESKIT\Perl;C:\local\bin;C:\Programme\InstallShield\InstallShield 5.1 Professional Edition\Program;C:\Programme\DevStudio\VC'
PATH-OK = `C:\home\rene\bin;G:\home\rene\aegis\si++.D130\bin\winnt;c:\home\rene\bin;%TSHG%\bin;c:\programme\devstudio\vc\bin;c:\programme\devstudio\sharedide\bin\ide;c:\programme\devstudio\sharedide\bin;C:\NUTCROOT\bin;C:\NUTCROOT\mksnt\;C:\WINNT\system32;C:\WINNT;C:\Programme\Maestro.nt;C:\NTRESKIT;C:\NTRESKIT\Perl;C:\local\bin;C:\Programme\InstallShield\InstallShield 5.1 Professional Edition\Program;'
PATH-OLD = `C:\home\rene\bin;G:\home\rene\aegis\si++.C171\bin\winnt;%SIXXBASE%\bin\winnt;c:\programme\devstudio\sharedide\bin\ide;c:\programme\devstudio\sharedide\bin;c:\programme\devstudio\vc\bin'
PATH-OPENNT = `c:\local\sibin;C:\OpenNT\bin;C:\WINNT\system32;C:\WINNT;C:\Programme\Maestro.nt;C:\NTRESKIT;C:\NTRESKIT\Perl;C:\local\bin;C:\Programme\InstallShield\InstallShield 5.1 Professional Edition\Program;C:\Programme\DevStudio\VC'
PATH-USER = `G:\home\rene\aegis\si++.C171\lib\winnt\exe;c:\home\rene\bin;C:\Programme\TSHG\GNU\bin;c:\programme\devstudio\vc\bin;c:\programme\devstudio\sharedide\bin\ide;c:\programme\devstudio\sharedide\bin;%SIXXBASE%\lib\winnt\exe'
PATHEXT = `.exe;.com;.BAT;.CMD'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 5 Model 2 Stepping 12, GenuineIntel'
PROCESSOR_LEVEL = `5'
PROCESSOR_REVISION = `020c'
PROMPT = `$P$G'
R = `C:\Programme\TSHG\GNU\remote'
S4 = `%SIXXBASE%'
SHELL-NUTC = `C:\NuTC\mksnt\sh.exe'
SHELL = `/bin/sh'
SHLVL = `1'
SIBINPATH = `G:\home\rene\aegis\si++.C171\bin\winnt'
SICACHE = `C:\sicache'
SILIBPATH = `%SIXXBASE%\bin\winnt'
SIMACHTYPE = `winnt'
SIXXBASE-BL = `O:\atg\si++aegis\baseline'
SIXXBASE = `G:\home\rene\aegis\si++.C171'
SIXXBASEGM = `//G/home/rene/aegis/si++.C171'
SIXXBASEGMFS = `G:/home/rene/aegis/si++.C171'
SIXXDOC = `o:\atg\si++3.4\doc\manual'
SIXXLOCAL-ATG = `G:\home\atg\si++local\atg'
SIXXLOCAL-NEPTUN = `C:\local\si++local'
SIXXLOCAL = `C:\local\si++local'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `C:\TEMP'
TERM = `nutc'
TERMCAP = `C:\NUTCROOT\etc\termcap'
TERMINFO = `C:\NUTCROOT\usr\lib\terminfo'
TIX_LIBRARY = `G:\home\rene\aegis\si++.C171\lib\tix41'
TK_LIBRARY = `G:\home\rene\aegis\si++.C171\lib\tk80'
TMP = `C:\TEMP'
TMPDIR = `C:\TEMP'
TSHG = `C:\Programme\TSHG\GNU'
USERDOMAIN = `NEPTUN'
USERNAME = `rene'
USERPROFILE = `C:\WINNT\Profiles\rene'
VCDIR = `C:/programme/DevStudio'
WINDIR = `C:\WINNT'
_ = `/cygnus/CYGWIN~1/H-I586~1/bin/sh'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
  (default) = `\\.\tape1:'
  unix = `/dev/st1'
  fmixed = 0x00000000
  fbinary = 0x00000000
  fsilent = 0x00000001
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
  (default) = `\\.\tape0:'
  unix = `/dev/st0'
  fmixed = 0x00000000
  fbinary = 0x00000000
  fsilent = 0x00000001
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
  (default) = `\\.\b:'
  unix = `/dev/fd1'
  fmixed = 0x00000000
  fbinary = 0x00000000
  fsilent = 0x00000001
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03
  (default) = `\\.\a:'
  unix = `/dev/fd0'
  fmixed = 0x00000000
  fbinary = 0x00000000
  fsilent = 0x00000001
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04
  (default) = `c:'
  unix = `/'
  fmixed = 0x00000000
  fbinary = 0x00000000
  fsilent = 0x00000000
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin B20
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin B20\B20.1
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32\i586-cygwin32
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\GNUPro\i586-cygwin32\i586-cygwin32\cygwin-B20.1
  (default) = `c:\cygnus\cygwin-b20'
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Cygnus Cygwin B20
  (default) = `C:\WINNT\IsUninst.exe -fc:\cygnus\cygwin-b20\Uninst.isu'
  DisplayName = `Cygwin B20'

a:\ fd           N/A    N/A                    
c:\ hd  NTFS    4000Mb  89% CP CS UN PA FC     WinNT4.0
d:\ cd           N/A    N/A                    
g:\ net NTFS    1788Mb  97%          PA        giga
o:\ net NTFS    1678Mb  69%          PA        opt
s:\ net NFS     4039Mb  93% CP                 /disk2/software

c:          /         native  text!=binary
\\.\a:      /dev/fd0  native  text!=binary
\\.\b:      /dev/fd1  native  text!=binary
\\.\tape0:  /dev/st0  native  text!=binary
\\.\tape1:  /dev/st1  native  text!=binary

Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\bash.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe
Found: c:\NuTCROOT\mksnt\cat.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe hides c:\NuTCROOT\mksnt\cat.exe
Found: c:\NTRESKIT\cat.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\cat.exe hides c:\NTRESKIT\cat.exe
Not Found: cpp (good!)
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\find.exe
Found: c:\NuTCROOT\mksnt\find.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\find.exe hides c:\NuTCROOT\mksnt\find.exe
Not Found: gcc
Not Found: gdb
Found: c:\NuTCROOT\mksnt\ld.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe
Found: c:\NuTCROOT\mksnt\ls.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe hides c:\NuTCROOT\mksnt\ls.exe
Found: c:\NTRESKIT\ls.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\ls.exe hides c:\NTRESKIT\ls.exe
Found: c:\NuTCROOT\mksnt\make.exe
Found: c:\cygnus\CYGWIN~1\H-I586~1\bin\sh.exe
Found: c:\NuTCROOT\mksnt\sh.exe
Warning: c:\cygnus\CYGWIN~1\H-I586~1\bin\sh.exe hides c:\NuTCROOT\mksnt\sh.exe

  497k 1997/05/07 C:\WINNT\System32\cygwin.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin.dll" v0.0 ts=1997/5/7 17:48
  446k 1998/12/03 c:\cygnus\CYGWIN~1\H-I586~1\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=1998/12/4 5:39
Use -h to see help about each section

--
Want to unsubscribe from this list?
Send a message to [email-masked]