delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/10/20:46:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 10 May 2005 14:36:38 -0600
From: Mark Paulus <mark DOT paulus AT mci DOT com>
Subject: Problem with ls and EACCESS
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-id: <0IGA004HJJX2FO@pmismtp01.mcilink.com>
MIME-version: 1.0
X-IsSubscribed: yes

I have been trying out the ext2 read/write IFS driver
for WinXP, and it seems to work nicely.  However, I 
have noticed this one issue.

In /, I have a couple of symbolic links to kernels.  When
I look at them in a windows command prompt, I see the link as a 
file:  
08/12/2004  05:45 AM                20 vmlinuz.knoppix
and if I try to look inside, 
L:\>type vmlinuz.knoppix
Access is denied.

So far, all is good.

However, when I try to look at the directory under cygwin:
$ ls /cygdrive/l/vmlinuz.knoppix
ls: /cygdrive/l/vmlinuz.knoppix: No such file or directory

I have pulled an strace of this, and it looks like someone
is skipping the error EACCESS or ignoring it, and somehow
is transmuting the EACCESS into ENOENT.

   37  116938 [main] ls 2268 normalize_posix_path: src /cygdrive/l/vmlinuz.knoppix
   37  116975 [main] ls 2268 normalize_posix_path: /cygdrive/l/vmlinuz.knoppix =  normalize_posix_path (/cygdrive/l/vmlinuz.knoppix)
   37  117012 [main] ls 2268 mount_info::conv_to_win32_path: conv_to_win32_path(/cygdrive/l/vmlinuz.knoppix)
   38  117050 [main] ls 2268 mount_info::cygdrive_win32_path: src '/cygdrive/l/vmlinuz.knoppix', dst 'l:\vmlinuz.knoppix'
   37  117087 [main] ls 2268 set_flags: flags: binary (0x2)
   35  117122 [main] ls 2268 mount_info::conv_to_win32_path: src_path /cygdrive/l/vmlinuz.knoppix, dst l:\vmlinuz.knoppix, flags 0x2A, rc 0
  172  117294 [main] ls 2268 symlink_info::check: GetFileAttributes (l:\vmlinuz.knoppix) failed
   44  117338 [main] ls 2268 geterrno_from_win_error: windows error 5 == errno 13
  122  117460 [main] ls 2268 symlink_info::check: GetFileAttributes (l:\vmlinuz.knoppix.exe) failed
   41  117501 [main] ls 2268 geterrno_from_win_error: windows error 2 == errno 2  
121  117622 [main] ls 2268 symlink_info::check: GetFileAttributes (l:\vmlinuz.knoppix.exe.lnk) failed
   93  117715 [main] ls 2268 geterrno_from_win_error: windows error 2 == errno 2
  124  117839 [main] ls 2268 symlink_info::check: GetFileAttributes (l:\vmlinuz.knoppix.lnk) failed
   40  117879 [main] ls 2268 geterrno_from_win_error: windows error 2 == errno 2
   34  117913 [main] ls 2268 symlink_info::check: 0 = symlink.check (l:\vmlinuz.knoppix, 0x22E5D0) (0x2A)



--
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/

- Raw text -


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