This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Updating cygwin_conv_path to match behaviour of cygpath
- From: Bruce Cran <bruce at cran dot org dot uk>
- To: cygwin-developers at cygwin dot com
- Date: Mon, 3 Jan 2011 12:39:35 +0000
- Subject: Updating cygwin_conv_path to match behaviour of cygpath
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