delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/06/19:03:42

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 06 Aug 2001 15:56:46 -0700
From: "Flynn, Connor J" <connor DOT flynn AT pnl DOT gov>
Subject: 1.3.2 Problem tarring/untarring shortcuts
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Message-id: <29E6E93D92576F4DB85FE89FF2C23F44A837E6@pnlmse03.pnl.gov>
MIME-version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

------_=_NextPart_000_01C11ECB.11C0B1C0
Content-Type: text/plain;
	charset="iso-8859-1"

Under Cygwin1.dll version 1.3.2 with Windows 98 Release 2:

I am having a problem with the name and content of shortcuts being altered
through the tar process.  
See this effect by issuing the following pair of commands from a directory
containing a shortcut named "Shortcut": 
       tar -cf test.tar shortcut.lnk
       tar -xf test.tar
The name of the extracted file gets "LNK" appended to it.  Moreover, the
shortcut is extracted as a read-only file.  
Worse still, command line arguments and working directory info that had been
included in the original shortcut are lost.  

Here's an example of when this is unwelcome: 
Adding the argument "/E" to the command line for Explorer.exe opens a window to
the current working directory.  
By creating shortcuts to Explorer with different working directories, these
shortcuts act like traversable links.  
However, when these links are tarred up and then untarred, the untarred link has
a changed name, loses the /E 
argument, and also loses alternate working directory information. 

I have also tried repeating this with cygwin1.dll version 1.1.7.  The result is
similar except that the untarred 
shortcuts are renamed to conform to Microsoft's 8dot3 naming pattern with
number-tilde.  The version cygwin1.dll 
1.1.4 does not exhibit this problem.  I expect that perhaps this is due to a
difference in how Shortcuts and symbolic links are handled?

Under Cygwin 1.3.2 with Windows 98:

I am having a problem with the name and content of shortcuts being altered
through the tar process.  
See this effect by issuing the following pair of commands from a directory
containing a shortcut named "Shortcut": 
       tar -cf test.tar shortcut.lnk
       tar -xf test.tar
The name of the extracted file gets "LNK" appended to it.  Moreover, the
shortcut is extracted as a read-only file.  
Worse still, any command line arguments that had been included in the original
shortcut are lost.  

Here's an example of when this is unwelcome: 
Adding the argument "/E" to the command line for Explorer.exe opens a window to
the current working directory.  
By creating shortcuts to Explorer with different working directories, these
shortcuts act like traversable links.  
However, when these links are tarred up and then untarred, the untarred link has
a changed name, loses the /E 
argument, and also loses alternate working directory information. 

I have also tried repeating this with cygwin1.dll version 1.1.7.  The result is
similar except that the untarred 
shortcuts are renamed to conform to Microsoft's 8dot3 naming pattern with
number-tilde.  The version cygwin1.dll 
1.1.4 does not exhibit this problem.  I expect that perhaps this is due to a
difference in how Shortcuts and symbolic links are handled?

The cygcheck.out file attached is of my system with cygwin1.dll 1.1.4 installed,
not the problematic 1.3.2 which I uninstalled.  If you really need a copy with
other version, I can reinstall it and provide a cygcheck.out file for it as well
one.


 <<cygcheck.out>> 

Connor J. Flynn		
MS K9-24		Connor DOT Flynn AT arm DOT gov
Battelle NW, PNNL	509-375-2041
PO Box 999		fax-271-0030
Richland WA 99352	lab-372-4710

No brains, no headaches...


------_=_NextPart_000_01C11ECB.11C0B1C0
Content-Type: application/octet-stream;
	name="cygcheck.out"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="cygcheck.out"


Cygnus Win95/NT Configuration Diagnostics
Current System Time: Mon Aug  6 15:47:39 2001

Win9X Ver 4.10 build 67766446  A=20

Path:	/usr/local/bin
	/usr/bin
	/usr/bin
	/cygdrive/d/CURRENT/PATH/PREPEND
	/usr/bin
	/usr/bin
	/USR/LOCAL/BIN
	/cygdrive/d/TCL/BIN
	/cygdrive/c/WINDOWS
	/cygdrive/c/WINDOWS/COMMAND
	/cygdrive/d/PROGRAMS/SYBASE/OPENCL~1/BIN
	/cygdrive/d/PROGRAMS/SYBASE/OPENCL~1/DLL
	.
	/cygdrive/d/CURRENT/PATH/APPEND
	.

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

CYGWIN =3D `notty'
HOME =3D `/home/d3k014'
MAKE_MODE =3D `unix'
PWD =3D `/home/d3k014'
USER =3D `d3k014'

!C: =3D `C:\WINDOWS'
!D: =3D `D:\PATH\PREPEND'
BLASTER =3D `A220 I5 D1'
CMDLINE =3D `rxvt -sr -sl 2000 -fn "Lucida Console-12" -tn cygwin -e =
bash.exe --login -i'
COLORFGBG =3D `0;default;15'
COLORTERM =3D `rxvt-xpm'
COMSPEC =3D `C:\WINDOWS\COMMAND.COM'
DISPLAY =3D `:0'
DSQUERY =3D `SYBASE'
HOSTNAME =3D `CONDELL'
HOSTTYPE =3D `i686'
MACHTYPE =3D `i686-pc-cygwin'
OLDPWD =3D `/cygdrive/d/Path/prepend'
OSTYPE =3D `cygwin'
PROMPT =3D `$p$g'
PS1 =3D `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SHELL =3D `/bin/sh'
SHLVL =3D `1'
SYBASE =3D `d:\PROGRAMS\SYBASE\OPENCL~1'
TEMP =3D `/cygdrive/c/WINDOWS/TEMP'
TERM =3D `cygwin'
WINBOOTDIR =3D `C:\WINDOWS'
WINDIR =3D `C:\WINDOWS'
WINDOWID =3D `72941656'
_ =3D `/usr/bin/cygcheck'
TZ =3D `PST8PDT7,M4.1.0/2,M10.5.0/2'

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Men=
uOrder\Start Menu\&Programs\Cygnus Solutions
  (default) =3D (unsupported type)
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) =3D `/cygdrive'
  cygdrive flags =3D 0x00000020
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
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) =3D `C:'
  unix =3D `/'
  fbinary =3D 0x00000000
  fsilent =3D 0x00000000
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\C=
ygnus Cygwin B20
  (default) =3D `C:\WINDOWS\IsUninst.exe =
-fd:\cygwin\cygwin-b20\Uninst.isu'
  DisplayName =3D `Cygwin B20'
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/
  (default) =3D `D:/cygwin'
  flags =3D 0x00000008
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) =3D `D:/cygwin/bin'
  flags =3D 0x00000008
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) =3D `D:/cygwin/lib'
  flags =3D 0x00000008
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin B20
HKEY_LOCAL_MACHINE\Software\Cygnus Solutions\Cygwin B20\B20.1
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) =3D `d:\cygwin\cygwin-b20'
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

a:  fd           N/A    N/A                   =20
c:  hd  FAT32   1503Mb  46% CP    UN           WIN98
d:  hd  FAT32   1503Mb  51% CP    UN           FUNCTION
e:  hd  FAT     1505Mb  44% CP    UN           LIBRARY
f:  hd  FAT32  14544Mb  83% CP    UN           DATA

D:\cygwin\bin  /usr/bin  system  textmode
D:\cygwin\lib  /usr/lib  system  textmode
D:\cygwin  /        system  textmode

Found: D:\cygwin\bin\bash.exe
Found: D:\cygwin\bin\cat.exe
Found: D:\cygwin\bin\cpp.exe
Found: c:\WINDOWS\COMMAND\find.exe
Found: D:\cygwin\bin\gcc.exe
Found: D:\cygwin\bin\gdb.exe
Found: D:\cygwin\bin\ld.exe
Found: D:\cygwin\bin\ls.exe
Found: D:\cygwin\bin\make.exe
Found: D:\cygwin\bin\sh.exe

  586k 2000/08/04 C:\WINDOWS\cygwin1.dll - os=3D4.0 img=3D1.0 sys=3D4.0
                  "cygwin1.dll" v0.0 ts=3D2000/8/3 17:53
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 4
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        api major: 0
        api minor: 26
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        build date: Thu Aug 3 20:53:46 EDT 2000
        CVS tag: cygwin-1-1-4
        shared id: cygwin1S3

  390k 2001/04/28 D:\cygwin\bin\cygtcl80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygtcl80.dll" v0.0 ts=3D2001/4/28 15:56
    5k 2001/04/28 D:\cygwin\bin\cygtclpip80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
   10k 2001/04/28 D:\cygwin\bin\cygtclreg80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygtclreg80.dll" v0.0 ts=3D2001/4/28 15:56
   81k 2001/04/28 D:\cygwin\bin\cygitcl30.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygitcl30.dll" v0.0 ts=3D2001/4/28 15:57
   35k 2001/04/28 D:\cygwin\bin\cygitk30.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygitk30.dll" v0.0 ts=3D2001/4/28 15:57
  623k 2001/04/28 D:\cygwin\bin\cygtk80.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygtk80.dll" v0.0 ts=3D2001/4/28 15:57
   21k 2001/06/20 D:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygintl.dll" v0.0 ts=3D2001/6/20 10:09
   45k 2001/07/04 D:\cygwin\bin\cygjbig1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygjbig1.dll" v0.0 ts=3D2001/7/3 20:25
  119k 2001/06/06 D:\cygwin\bin\cygjpeg6b.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygjpeg6b.dll" v0.0 ts=3D2001/6/5 21:27
  163k 2001/05/06 D:\cygwin\bin\cygpng2.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpng2.dll" v0.0 ts=3D2001/5/5 21:05
   45k 2001/04/25 D:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygform5.dll" v0.0 ts=3D2001/4/24 22:28
   26k 2001/04/25 D:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygmenu5.dll" v0.0 ts=3D2001/4/24 22:27
  156k 2001/04/25 D:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygncurses++5.dll" v0.0 ts=3D2001/4/24 22:29
  226k 2001/04/25 D:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygncurses5.dll" v0.0 ts=3D2001/4/24 22:17
   15k 2001/04/25 D:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygpanel5.dll" v0.0 ts=3D2001/4/24 22:27
   17k 2001/06/28 D:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cyghistory4.dll" v0.0 ts=3D2001/1/6 20:34
   21k 2001/06/28 D:\cygwin\bin\cyghistory5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cyghistory5.dll" v0.0 ts=3D2001/6/27 19:27
  108k 2001/06/28 D:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygreadline4.dll" v0.0 ts=3D2001/1/6 20:34
  135k 2001/06/28 D:\cygwin\bin\cygreadline5.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygreadline5.dll" v0.0 ts=3D2001/6/27 19:27
  245k 2001/06/12 D:\cygwin\bin\cygtiff3.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygtiff3.dll" v0.0 ts=3D2001/6/12 10:25
   41k 2001/07/04 D:\cygwin\bin\cygXpm-noX4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygXpm-noX4.dll" v0.0 ts=3D2001/7/3 18:21
   45k 2001/07/04 D:\cygwin\bin\cygXpm-X4.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygXpm-X4.dll" v0.0 ts=3D2000/11/19 18:45
   49k 2001/02/03 D:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0
                  "cygz.dll" v0.0 ts=3D2001/2/3 12:35
  586k 2000/08/04 D:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 =
sys=3D4.0
                  "cygwin1.dll" v0.0 ts=3D2000/8/3 17:53
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 4
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        api major: 0
        api minor: 26
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        build date: Thu Aug 3 20:53:46 EDT 2000
        CVS tag: cygwin-1-1-4
        shared id: cygwin1S3

Use -h to see help about each section


------_=_NextPart_000_01C11ECB.11C0B1C0
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------_=_NextPart_000_01C11ECB.11C0B1C0--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019