This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem with ls and EACCESS


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]