This is the mail archive of the
cygwin
mailing list for the Cygwin project.
cygwin_conv_path returns wrong device names?
- From: Bruce Cran <bruce at cran dot org dot uk>
- To: cygwin at cygwin dot com
- Date: Sun, 2 Jan 2011 14:27:38 +0000
- Subject: cygwin_conv_path returns wrong device names?
I need to convert unix device nodes such as /dev/sda to Windows device
names within an application. cygpath returns devices such as:
> cygpath -w /dev/sda
\\.\PhysicalDrive0
That can be opened by both open(2) and CreateFile since it resides
in the global namespace, but cygwin_conv_path returns
\Device\Harddisk0\Partition0 which cygwin can't access.
Shouldn't cygpath and cygwin_conv_path returns the same paths?
--
Bruce Cran
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple