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]

Re: Cygwin 1.7 cannot access network share


According to Ilya Beylin on 3/3/2010 12:42 AM:
> $ ls -l '\\HERA\shared\benchmarks\test'
> ls: cannot access \\hera\shared\benchmarks\test: Not a directory

Use POSIX-style paths, to see the difference.

$ ls -l //HERA/shared/benchmarks/test

> 
> I do not quite understand what is going on; doesn't Cygwin uses Windows standard calls to access the network drives?

Yes, but only after translating POSIX-style names into windows style names
under the hood.  Providing windows-style names up front tells cygwin to
take different code paths, and in particular, turns off some ACL work, and
you are on your own if a name with a backslash doesn't do what you wanted.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


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