Updating cygwin_conv_path to match behaviour of cygpath

Bruce Cran bruce@cran.org.uk
Mon Jan 3 12:39:00 GMT 2011


Hi,

I recently commented on the cygwin ml that the behaviour of
cygwin_conv_path is different to that of cygpath wrt device nodes -
it's also been pointed out several years ago
(http://cygwin.com/ml/cygwin/2004-06/msg00310.html). Since names such
as "\Device\HardDisk0\Partition0" can't be opened by either open(2) or
CreateFile I'm wondering if a patch would be welcomed which imports
get_device_name() from utils/cygpath.cc into cygwin1.dll
(cygwin\path.cc)?  That would allow people needing to access devices
to do so by converting Linux device nodes and opening the resulting
path using both POSIX and Windows APIs.

-- 
Bruce Cran



More information about the Cygwin-developers mailing list