public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [1.7] Cygwin 1.7 misnames hardlinks
@ 2008-12-24  4:11 Lawrence Mayer
  2009-01-07 14:29 ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Lawrence Mayer @ 2008-12-24  4:11 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 962 bytes --]

Cygwin 1.7-37 and -36 misname certain hardlinks by adding an extra .exe 
extention: e.g.
	ln vgaoem.fon ..
creates vgaoem.fon.exe in the parent directory, not vgaoem.fon as expected.

The same bug occurs with
	cp -l vgaoem.fon ..

This bug occurs when hardlinking all .fon files I have tried, most .sys 
files, and some .dll, .com, .drv, .scr, .tlb, ...etc files. The bug 
appears consistent: a given file either always or never gets misnamed.

The bug appears specific to hardlinks:
	ln -s vgaoem.fon and cp vgaoem.fon
behave as expected without this bug.

I see this bug on 2 computers running 2 different versions of Windows. 
Cygcheck.out is attached from each computer.

This bug is present in Cygwin 1.7.0-37 and 1.7.0-36. I have not tested 
earlier 1.7 builds.

This bug appears new to Cygwin 1.7 and not present in Cygwin 1.5.25-15.

Since this bug occurs when hardlinking only some files, I'm attaching 
vgaoem.fon (6 KB).

Holiday Greetings,
Lawrence


[-- Attachment #2: computer1.cygcheck.out --]
[-- Type: text/plain, Size: 12344 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Tue Dec 23 19:29:11 2008

Windows 2003 Server Enterprise Edition Ver 5.2 Build 3790 Service Pack 2

Path:	C:\OS1\system32
	C:\OS1
	C:\App\Microsoft\DbgTools
	C:\App\Microsoft\RKTools
	C:\App\Microsoft\STools
	C:\App\Microsoft\WDK
	C:\App\CLI
	C:\App\Westlake
	C:\App\Cygwin\bin
	C:\App\Gnu
	C:\App\Ch\bin
	C:\App\Common
	C:\App\Sysint
	C:\App\p-nand-q
	C:\App\Unlocker
	C:\App\WinRAR
	C:\App\7-Zip
	C:\App\UniExtract\bin
	C:\App\GTK\2.0\bin
	D:\computer\Install

Output from C:\App\cygwin\bin\id.exe (nontsec)
UID: 400(Administrator) GID: 401(mkpasswd)
0(root)                 544(Administrators)     545(Users)
401(mkpasswd)

Output from C:\App\cygwin\bin\id.exe (ntsec)
UID: 400(Administrator) GID: 401(mkpasswd)
0(root)                 544(Administrators)     545(Users)
401(mkpasswd)

SysDir: C:\OS1\system32
WinDir: C:\OS1

CYGWIN = 'nodosfilewarning glob:ignorecase nontsec'
Path = 'C:\OS1\system32;C:\OS1;C:\App\Microsoft\DbgTools;C:\App\Microsoft\RKTools;C:\App\Microsoft\STools;C:\App\Microsoft\WDK;C:\App\CLI;C:\App\Westlake;C:\App\Cygwin\bin;C:\App\Gnu;C:\App\Ch\bin;C:\App\Common;C:\App\Sysint;C:\App\p-nand-q;C:\App\Unlocker;C:\App\WinRAR;C:\App\7-Zip;C:\App\UniExtract\bin;C:\App\GTK\2.0\bin;D:\computer\Install'

-10 = 'C:\OS1'
-11 = 'C:\OS1\system32'
-12 = 'C:\OS1\system32\drivers'
-16412 = 'C:\OS1\system32\config\systemprofile\Local Settings\Application Data'
-16422 = 'C:\App'
-16427 = 'C:\App\Common'
-17 = 'C:\OS1\inf'
-18 = 'C:\OS1\Help'
-20 = 'C:\OS1\Fonts'
-24 = 'C:\'
-52 = 'C:\OS1\system32\spool\drivers'
-53 = 'C:\OS1\system32\config\systemprofile'
ALLUSERSPROFILE = 'C:\OS1\Profiles\All Users'
APPDATA = 'C:\Data\appdata'
CommonProgramFiles = 'C:\App\Common'
COMPUTERNAME = 'AK31'
ComSpec = 'C:\OS1\system32\cmd.exe'
devmgr_show_nonpresent_devices = '1'
FP_NO_HOST_CHECK = 'NO'
GTKMM_BASEPATH = 'C:\App\GTK\2.0'
GTK_BASEPATH = 'C:\App\GTK\2.0'
HOMEDRIVE = 'C:'
HOMEPATH = '\'
LOGONSERVER = '\\AK31'
NUMBER_OF_PROCESSORS = '1'
OS = 'Windows_NT'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.CH'
PROCESSOR_ARCHITECTURE = 'x86'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 8 Stepping 1, AuthenticAMD'
PROCESSOR_LEVEL = '6'
PROCESSOR_REVISION = '0801'
ProgramFiles = 'C:\App'
PROMPT = '$P$G'
SystemDrive = 'C:'
SystemRoot = 'C:\OS1'
TEMP = 'C:\Tmpdir\Temp'
TMP = 'C:\Tmpdir\Temp'
USERDOMAIN = 'AK31'
USERNAME = 'Administrator'
USERPROFILE = 'C:\OS1\Profiles\Administrator'
windir = 'C:\OS1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = '/'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = 'C:\App\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'C:\App\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = 'C:\App\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd             N/A    N/A                    
c:  hd  NTFS      5004Mb  36% CP CS UN PA FC     NT52
d:  hd  NTFS     65185Mb  21% CP CS UN PA FC     User

C:/App/cygwin      /         system  binmode,noacl,posix=0
C:\App\cygwin\bin  /usr/bin  system  binmode,noacl,posix=0
C:\App\cygwin\lib  /usr/lib  system  binmode,noacl,posix=0
.                  /         user    binmode,cygdrive,noacl,posix=0

Found: C:\App\Cygwin\bin\awk.exe
 -> C:\App\cygwin\bin\gawk.exe
Found: C:\App\Cygwin\bin\bash.exe
Found: C:\App\Cygwin\bin\cat.exe
Found: C:\App\Cygwin\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\OS1\system32\find.exe
Found: C:\App\Cygwin\bin\find.exe
Warning: C:\OS1\system32\find.exe hides C:\App\Cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\App\Cygwin\bin\grep.exe
Found: C:\App\Microsoft\DbgTools\kill.exe
Found: C:\App\Cygwin\bin\kill.exe
Warning: C:\App\Microsoft\DbgTools\kill.exe hides C:\App\Cygwin\bin\kill.exe
Found: C:\App\Cygwin\bin\ld.exe
Found: C:\App\Cygwin\bin\ls.exe
Found: C:\App\Cygwin\bin\make.exe
Found: C:\App\Cygwin\bin\mv.exe
Found: C:\App\Cygwin\bin\patch.exe
Found: C:\App\Cygwin\bin\perl.exe
Found: C:\App\Cygwin\bin\rm.exe
Found: C:\App\Cygwin\bin\sed.exe
Not Found: ssh
Found: C:\App\Cygwin\bin\sh.exe
Found: C:\App\Cygwin\bin\tar.exe
Found: C:\App\Cygwin\bin\test.exe
Found: C:\App\Ch\bin\vi.exe
Found: C:\App\Ch\bin\vim.exe

   61k 2008/04/01 C:\App\Cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2008/3/31 20:37
    7k 2003/10/19 C:\App\Cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 0:57
 1064k 2008/09/30 C:\App\Cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2008/9/30 8:27
  221k 2007/06/30 C:\App\Cygwin\bin\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2007/6/29 17:54
  943k 2007/12/17 C:\App\Cygwin\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2007/12/17 5:12
 1296k 2007/12/17 C:\App\Cygwin\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2007/12/17 5:12
  118k 2008/05/09 C:\App\Cygwin\bin\cygexpat-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-1.dll" v0.0 ts=2008/5/8 21:03
   40k 2006/11/15 C:\App\Cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2006/11/14 23:06
   19k 2006/11/19 C:\App\Cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2006/11/19 0:18
    8k 2006/11/19 C:\App\Cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2006/11/19 0:18
  219k 2008/10/04 C:\App\Cygwin\bin\cyggmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-3.dll" v0.0 ts=2008/10/4 16:48
  288k 2008/10/04 C:\App\Cygwin\bin\cyggmpxx-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmpxx-3.dll" v0.0 ts=2008/10/4 16:48
   24k 2008/11/29 C:\App\Cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2008/11/29 6:30
  271k 2007/08/24 C:\App\Cygwin\bin\cygicons-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2007/8/24 0:24
  978k 2008/11/10 C:\App\Cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2008/11/9 16:35
   37k 2003/08/10 C:\App\Cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 14:50
   31k 2005/11/20 C:\App\Cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/19 18:04
   31k 2008/11/10 C:\App\Cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2008/11/9 17:32
    5k 2008/12/23 C:\App\Cygwin\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2008/12/23 13:07
    9k 2008/12/23 C:\App\Cygwin\bin\cyglsa64.dll - os=4.0 img=0.0 sys=5.2
   83k 2007/06/06 C:\App\Cygwin\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2007/6/6 3:41
   21k 2006/11/15 C:\App\Cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2006/11/14 23:05
  121k 2008/10/04 C:\App\Cygwin\bin\cygmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmp-3.dll" v0.0 ts=2008/10/4 16:48
   67k 2006/11/15 C:\App\Cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2006/11/14 23:13
  237k 2006/11/15 C:\App\Cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2006/11/14 23:02
   12k 2006/11/15 C:\App\Cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2006/11/14 23:04
  181k 2008/09/07 C:\App\Cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2008/9/6 20:36
  302k 2008/09/07 C:\App\Cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcrecpp-0.dll" v0.0 ts=2008/9/6 20:36
    7k 2008/09/07 C:\App\Cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2008/9/6 20:36
 1543k 2008/07/03 C:\App\Cygwin\bin\cygperl5_10.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_10.dll" v0.0 ts=2008/6/30 9:06
   22k 2002/06/09 C:\App\Cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/8 22:45
  155k 2008/11/29 C:\App\Cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2008/11/29 6:30
  118k 2007/06/27 C:\App\Cygwin\bin\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2007/6/26 22:56
  218k 2008/09/30 C:\App\Cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2008/9/30 8:28
   65k 2006/10/16 C:\App\Cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2006/10/15 18:10
 2364k 2008/12/23 C:\App\Cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2008/12/23 13:07
    Cygwin DLL version info:
        DLL version: 1.7.0
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 190
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygdrive default prefix: 
        Build date: Tue Dec 23 16:07:34 EST 2008
        Shared id: cygwin1S5


Can't find the cygrunsrv utility, skipping services check.


Cygwin Package Information
Last downloaded files to: D:\computer\Install\AppsToCopy\cygwin
Last downloaded files from: http://cygwin.mirrors.hoobly.com/

Package              Version
_update-info-dir     00788-1
alternatives         1.3.30c-2
arc                  5.21m-1
ash                  20040127-4
astyle               1.22-2
base-cygwin          1.1-1
base-files           3.7-1
base-passwd          2.2-1
bash                 3.2.48-21
bashdb               3.1_0.09-1
binutils             20080624-2
bzip2                1.0.5-2
coreutils            7.0-2
crypt                1.1-1
curl                 7.16.3-1
cygutils             1.3.2-1
cygwin               1.7.0-36
cygwin-doc           1.5-1
diffutils            2.8.7-1
e2fsprogs            1.35-3
editrights           1.01-2
expat                2.0.1-1
file                 4.21-1
findutils            4.5.3-1
gawk                 3.1.6-1
grep                 2.5.3-1
groff                1.19.2-2
gzip                 1.3.12-2
indent               2.2.9-2
ipc-utils            1.0-1
less                 382-1
libbz2_1             1.0.5-2
libcurl4             7.16.3-1
libdb4.5             4.5.20.2-2
libexpat1            2.0.1-1
libexpat1-devel      2.0.1-1
libgdbm4             1.8.3-8
libgmp3              4.2.4-1
libiconv2            1.12-1
libintl2             0.12.1-3
libintl3             0.14.5-1
libintl8             0.17-1
libncurses-devel     5.5-3
libncurses8          5.5-3
libpcre0             7.8-1
libpopt0             1.6.4-4
libreadline6         5.2.13-11
libssh2_1            0.15-1
login                1.9-8
make                 3.81-2
man                  1.6e-1
openssl              0.9.8i-1
patch                2.5.8-9
perl                 5.10.0-5
readline             5.2.13-11
rebase               2.4.4-1
rsync                3.0.4-1
run                  1.1.10-1
sed                  4.1.5-2
tar                  1.20-2
termcap              20050421-1
terminfo             5.5_20061104-1
texinfo              4.8a-1
time                 1.7-2
tzcode               2008h-1
unzip                5.52-2
util-linux           2.13.1-2
wget                 1.11.4-2
which                2.19-1
zlib                 1.2.3-2
zsh                  4.3.9-1
Use -h to see help about each section

[-- Attachment #3: computer2.cygcheck.out --]
[-- Type: text/plain, Size: 12784 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Tue Dec 23 18:54:29 2008

Windows XP Home Edition Ver 5.1 Build 2600 Service Pack 2

Path:	C:\WINDOWS\system32
	C:\WINDOWS
	C:\WINDOWS\System32\Wbem
	C:\Program Files\ATI Technologies\ATI Control Panel

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

Path = 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel'

ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
APPDATA = 'C:\Documents and Settings\Samuel\Application Data'
CLIENTNAME = 'Console'
CommonProgramFiles = 'C:\Program Files\Common Files'
COMPUTERNAME = 'SYSTEM'
ComSpec = 'C:\WINDOWS\system32\cmd.exe'
devmgr_show_nonpresent_devices = '1'
FP_NO_HOST_CHECK = 'NO'
HOMEDRIVE = 'C:'
HOMEPATH = '\Documents and Settings\Samuel'
LOGONSERVER = '\\SYSTEM'
NUMBER_OF_PROCESSORS = '1'
OS = 'Windows_NT'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = 'x86'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 10 Stepping 0, AuthenticAMD'
PROCESSOR_LEVEL = '6'
PROCESSOR_REVISION = '0a00'
ProgramFiles = 'C:\Program Files'
PROMPT = '$P$G'
SESSIONNAME = 'Console'
SystemDrive = 'C:'
SystemRoot = 'C:\WINDOWS'
TEMP = 'D:\Temp'
TMP = 'D:\Temp'
USERDOMAIN = 'SYSTEM'
USERNAME = 'Samuel'
USERPROFILE = 'C:\Documents and Settings\Samuel'
windir = 'C:\WINDOWS'


a:  fd             N/A    N/A                    
c:  hd  NTFS      4502Mb  95% CP CS UN PA FC     XPCore
d:  hd  NTFS      1004Mb  13% CP CS UN PA FC     XPTemp
e:  hd  NTFS     32655Mb  44% CP CS UN PA FC     User
f:  hd  NTFS     19539Mb  66% CP CS UN PA FC     19GDisk
g:  cd  CDFS       467Mb 100%    CS UN           OFFICE12
h:  cd             N/A    N/A                    
i:  fd  FAT       1927Mb   1% CP    UN           
j:  fd  FAT       1927Mb  11% CP    UN           

C:/App/cygwin      /         system  binmode,noacl,posix=0
C:\App\cygwin\bin  /usr/bin  system  binmode,noacl,posix=0
C:\App\cygwin\lib  /usr/lib  system  binmode,noacl,posix=0
.                  /         user    binmode,cygdrive,noacl,posix=0

Not Found: awk
Not Found: bash
Not Found: cat
Not Found: cp
Not Found: cpp (good!)
Not Found: crontab
Found: C:\WINDOWS\system32\find.exe
Not Found: gcc
Not Found: gdb
Not Found: grep
Not Found: kill
Not Found: ld
Not Found: ls
Not Found: make
Not Found: mv
Not Found: patch
Not Found: perl
Not Found: rm
Found: C:\WINDOWS\sed.exe
Not Found: ssh
Not Found: sh
Not Found: tar
Not Found: test
Not Found: vi
Not Found: vim

   61k 2008/04/01 .\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2008/3/31 19:37
    7k 2003/10/19 .\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 0:57
 1064k 2008/09/30 .\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2008/9/30 8:27
  221k 2007/06/30 .\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2007/6/29 17:54
  943k 2007/12/17 .\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2007/12/17 5:12
 1296k 2007/12/17 .\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2007/12/17 5:12
  118k 2008/05/09 .\cygexpat-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-1.dll" v0.0 ts=2008/5/8 21:03
   40k 2006/11/15 .\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2006/11/14 23:06
   19k 2006/11/19 .\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2006/11/19 0:18
    8k 2006/11/19 .\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2006/11/19 0:18
  219k 2008/10/04 .\cyggmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-3.dll" v0.0 ts=2008/10/4 16:48
  288k 2008/10/04 .\cyggmpxx-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmpxx-3.dll" v0.0 ts=2008/10/4 16:48
   24k 2008/11/29 .\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2008/11/29 6:30
  271k 2007/08/24 .\cygicons-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2007/8/24 0:24
  978k 2008/11/10 .\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2008/11/9 16:35
   37k 2003/08/10 .\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 14:50
   31k 2005/11/20 .\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/19 18:04
   31k 2008/11/10 .\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2008/11/9 17:32
    5k 2008/12/23 .\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2008/12/23 13:07
    9k 2008/12/23 .\cyglsa64.dll - os=4.0 img=0.0 sys=5.2
   83k 2007/06/06 .\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2007/6/6 3:41
   21k 2006/11/15 .\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2006/11/14 23:05
  121k 2008/10/04 .\cygmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmp-3.dll" v0.0 ts=2008/10/4 16:48
   67k 2006/11/15 .\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2006/11/14 23:13
  237k 2006/11/15 .\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2006/11/14 23:02
   12k 2006/11/15 .\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2006/11/14 23:04
  181k 2008/09/07 .\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2008/9/6 20:36
  302k 2008/09/07 .\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcrecpp-0.dll" v0.0 ts=2008/9/6 20:36
    7k 2008/09/07 .\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2008/9/6 20:36
 1543k 2008/07/03 .\cygperl5_10.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_10.dll" v0.0 ts=2008/6/30 9:06
   22k 2002/06/09 .\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/8 22:45
  155k 2008/11/29 .\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2008/11/29 6:30
  118k 2007/06/27 .\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2007/6/26 22:56
  218k 2008/09/30 .\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2008/9/30 8:28
   65k 2006/10/16 .\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2006/10/15 18:10
 2364k 2008/12/23 .\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2008/12/23 13:07
    Cygwin DLL version info:
        DLL version: 1.7.0
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 190
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygdrive default prefix: 
        Build date: Tue Dec 23 16:07:34 EST 2008
        Shared id: cygwin1S5

   61k 2008/04/01 E:\Larry\cygwin17\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2008/3/31 19:37
    7k 2003/10/19 E:\Larry\cygwin17\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 0:57
 1064k 2008/09/30 E:\Larry\cygwin17\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2008/9/30 8:27
  221k 2007/06/30 E:\Larry\cygwin17\bin\cygcurl-4.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-4.dll" v0.0 ts=2007/6/29 17:54
  943k 2007/12/17 E:\Larry\cygwin17\bin\cygdb-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.5.dll" v0.0 ts=2007/12/17 5:12
 1296k 2007/12/17 E:\Larry\cygwin17\bin\cygdb_cxx-4.5.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.5.dll" v0.0 ts=2007/12/17 5:12
  118k 2008/05/09 E:\Larry\cygwin17\bin\cygexpat-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygexpat-1.dll" v0.0 ts=2008/5/8 21:03
   40k 2006/11/15 E:\Larry\cygwin17\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2006/11/14 23:06
   19k 2006/11/19 E:\Larry\cygwin17\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2006/11/19 0:18
    8k 2006/11/19 E:\Larry\cygwin17\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2006/11/19 0:18
  219k 2008/10/04 E:\Larry\cygwin17\bin\cyggmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmp-3.dll" v0.0 ts=2008/10/4 16:48
  288k 2008/10/04 E:\Larry\cygwin17\bin\cyggmpxx-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggmpxx-3.dll" v0.0 ts=2008/10/4 16:48
   24k 2008/11/29 E:\Larry\cygwin17\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2008/11/29 6:30
  271k 2007/08/24 E:\Larry\cygwin17\bin\cygicons-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygicons-0.dll" v0.0 ts=2007/8/24 0:24
  978k 2008/11/10 E:\Larry\cygwin17\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2008/11/9 16:35
   37k 2003/08/10 E:\Larry\cygwin17\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 14:50
   31k 2005/11/20 E:\Larry\cygwin17\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/19 18:04
   31k 2008/11/10 E:\Larry\cygwin17\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2008/11/9 17:32
    5k 2008/12/23 E:\Larry\cygwin17\bin\cyglsa.dll - os=4.0 img=1.0 sys=4.0
                  "cyglsa.dll" v0.0 ts=2008/12/23 13:07
    9k 2008/12/23 E:\Larry\cygwin17\bin\cyglsa64.dll - os=4.0 img=0.0 sys=5.2
   83k 2007/06/06 E:\Larry\cygwin17\bin\cygmagic-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygmagic-1.dll" v0.0 ts=2007/6/6 3:41
   21k 2006/11/15 E:\Larry\cygwin17\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2006/11/14 23:05
  121k 2008/10/04 E:\Larry\cygwin17\bin\cygmp-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygmp-3.dll" v0.0 ts=2008/10/4 16:48
   67k 2006/11/15 E:\Larry\cygwin17\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2006/11/14 23:13
  237k 2006/11/15 E:\Larry\cygwin17\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2006/11/14 23:02
   12k 2006/11/15 E:\Larry\cygwin17\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2006/11/14 23:04
  181k 2008/09/07 E:\Larry\cygwin17\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2008/9/6 20:36
  302k 2008/09/07 E:\Larry\cygwin17\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcrecpp-0.dll" v0.0 ts=2008/9/6 20:36
    7k 2008/09/07 E:\Larry\cygwin17\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2008/9/6 20:36
 1543k 2008/07/03 E:\Larry\cygwin17\bin\cygperl5_10.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_10.dll" v0.0 ts=2008/6/30 9:06
   22k 2002/06/09 E:\Larry\cygwin17\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/8 22:45
  155k 2008/11/29 E:\Larry\cygwin17\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2008/11/29 6:30
  118k 2007/06/27 E:\Larry\cygwin17\bin\cygssh2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygssh2-1.dll" v0.0 ts=2007/6/26 22:56
  218k 2008/09/30 E:\Larry\cygwin17\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2008/9/30 8:28
   65k 2006/10/16 E:\Larry\cygwin17\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2006/10/15 18:10
 2364k 2008/12/23 E:\Larry\cygwin17\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2008/12/23 13:07
    Cygwin DLL version info:
        DLL version: 1.7.0
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 190
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygdrive default prefix: 
        Build date: Tue Dec 23 16:07:34 EST 2008
        Shared id: cygwin1S5

Warning: There are multiple cygwin1.dlls on your path

Can't find the cygrunsrv utility, skipping services check.


Cygwin Package Information
No setup information found
Use -h to see help about each section

[-- Attachment #4: vgaoem.fon --]
[-- Type: application/octet-stream, Size: 5168 bytes --]

[-- Attachment #5: Type: text/plain, Size: 218 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [1.7] Cygwin 1.7 misnames hardlinks
  2008-12-24  4:11 [1.7] Cygwin 1.7 misnames hardlinks Lawrence Mayer
@ 2009-01-07 14:29 ` Corinna Vinschen
  2009-01-07 16:09   ` Brian Ford
  0 siblings, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2009-01-07 14:29 UTC (permalink / raw)
  To: cygwin

On Dec 23 20:09, Lawrence Mayer wrote:
> Cygwin 1.7-37 and -36 misname certain hardlinks by adding an extra .exe 
> extention: e.g.
> 	ln vgaoem.fon ..
> creates vgaoem.fon.exe in the parent directory, not vgaoem.fon as expected.
>
> The same bug occurs with
> 	cp -l vgaoem.fon ..
>
> This bug occurs when hardlinking all .fon files I have tried, most .sys 
> files, and some .dll, .com, .drv, .scr, .tlb, ...etc files. The bug appears 
> consistent: a given file either always or never gets misnamed.

I reproduced and (hopefully) fixed it in CVS.  Thanks for the report.

However, there's another problem which I'm puzzeling over when trying
the above.  I created a hardlink from C:\WINDOWS\Fonts\vgaoem.fon to
the same file in my home directory:

  $ pwd
  /home/corinna
  $ ln /cygdrive/c/WINDOWS/Fonts/vgaoem.fon .
  $ ls -l vga*
  -rwxrwx---+ 2 Administrators SYSTEM 5168 Feb 28  2006 vgaoem.fon

That's nice, but then:

  $ rm -f vgaoem.fon
  rm: cannot remove `vgaoem.fon': Permission denied

And that occurs even though I'm administrator and the unlink(2) call
uses the FILE_OPEN_FOR_BACKUP_INTENT flag.  The same happens with all
hardlinks to files used by the system.  The NT status code returned when
trying to set the delete disposition flag is C0000121,
STATUS_CANNOT_DELETE.  None of the Windows native methods to delete
these hardlinks works.  I'm still puzzeled how to get rid of them.
Does anybody knows how to do that?


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [1.7] Cygwin 1.7 misnames hardlinks
  2009-01-07 14:29 ` Corinna Vinschen
@ 2009-01-07 16:09   ` Brian Ford
  2009-01-07 16:43     ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Ford @ 2009-01-07 16:09 UTC (permalink / raw)
  To: cygwin

On Wed, 7 Jan 2009, Corinna Vinschen wrote:

> The same happens with all hardlinks to files used by the system.  The NT
> status code returned when trying to set the delete disposition flag is
> C0000121, STATUS_CANNOT_DELETE.  None of the Windows native methods to
> delete these hardlinks works.  I'm still puzzeled how to get rid of
> them. Does anybody knows how to do that?

Just a WAG, but disable Windows File Protection?

http://support.microsoft.com/kb/222193

-- 
Brian Ford
Staff Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained crew...

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [1.7] Cygwin 1.7 misnames hardlinks
  2009-01-07 16:09   ` Brian Ford
@ 2009-01-07 16:43     ` Corinna Vinschen
  2009-01-08  0:30       ` Lawrence Mayer
  0 siblings, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2009-01-07 16:43 UTC (permalink / raw)
  To: cygwin

On Jan  7 09:38, Brian Ford wrote:
> On Wed, 7 Jan 2009, Corinna Vinschen wrote:
> 
> > The same happens with all hardlinks to files used by the system.  The NT
> > status code returned when trying to set the delete disposition flag is
> > C0000121, STATUS_CANNOT_DELETE.  None of the Windows native methods to
> > delete these hardlinks works.  I'm still puzzeled how to get rid of
> > them. Does anybody knows how to do that?
> 
> Just a WAG, but disable Windows File Protection?
> 
> http://support.microsoft.com/kb/222193

No, I found the solution by getting the double-plus surprising result
that removing these hardlinks works in Cygwin 1.5.  For some reason only
the OS hackers at Microsoft might grok, setting the delete dispostion
flag for a file (*) doesn't work, but opening the file with the
FILE_FLAG_DELETE_ON_CLOSE flag and then closing it again (**) works
fine.  Go figure!  Unfortunately the DELETE_ON_CLOSE stuff is too
dangerous in some circumstances so it's not a generic solution.

I'm preparing a fix for 1.7.


Corinna

(*)  Which is also what the Win32 function DeleteFile does.
(**) Which is what Cygwin 1.5 and the native function ZwDeleteFile does.

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [1.7] Cygwin 1.7 misnames hardlinks
  2009-01-07 16:43     ` Corinna Vinschen
@ 2009-01-08  0:30       ` Lawrence Mayer
  0 siblings, 0 replies; 5+ messages in thread
From: Lawrence Mayer @ 2009-01-08  0:30 UTC (permalink / raw)
  To: cygwin

>> On Wed, 7 Jan 2009, Corinna Vinschen wrote:
>>
>>> The same happens with all hardlinks to files used by the system.  The NT
>>> status code returned when trying to set the delete disposition flag is
>>> C0000121, STATUS_CANNOT_DELETE.  None of the Windows native methods to
>>> delete these hardlinks works.  I'm still puzzeled how to get rid of
>>> them. Does anybody knows how to do that?

> On Jan  7 09:38, Brian Ford wrote:
>> Just a WAG, but disable Windows File Protection?
>>
>> http://support.microsoft.com/kb/222193

On 090107 08:09, Corinna Vinschen wrote:
> No, I found the solution by getting the double-plus surprising result
> that removing these hardlinks works in Cygwin 1.5.  For some reason only
> the OS hackers at Microsoft might grok, setting the delete dispostion
> flag for a file (*) doesn't work, but opening the file with the
> FILE_FLAG_DELETE_ON_CLOSE flag and then closing it again (**) works
> fine.  Go figure!  Unfortunately the DELETE_ON_CLOSE stuff is too
> dangerous in some circumstances so it's not a generic solution.
>
> I'm preparing a fix for 1.7.
>
>
> Corinna
>
> (*)  Which is also what the Win32 function DeleteFile does.
> (**) Which is what Cygwin 1.5 and the native function ZwDeleteFile does.

Thanks for fixing the original hardlink minsnaming problem Corinna.

A Windows native way to remove in-use hardlinks is to overwrite them 
with DOS Move, e.g.

C:\>ln Windows\fonts\vgaoem.fon .
C:\>del vgaoem.fon
C:\vgaoem.fon
Access is denied.

C:\>echo dummy file> foo
C:\>move /y foo vgaoem.fon >nul
C:\>del vgaoem.fon

A restriction is that the two files foo and vgaoem.fon must reside on 
the same filesystem (Volume).

New Year Greetings,
Lawrence





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-07 23:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-24  4:11 [1.7] Cygwin 1.7 misnames hardlinks Lawrence Mayer
2009-01-07 14:29 ` Corinna Vinschen
2009-01-07 16:09   ` Brian Ford
2009-01-07 16:43     ` Corinna Vinschen
2009-01-08  0:30       ` Lawrence Mayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).