cygwin patch for mc
Klaus Stehle
klaus.stehle at uni-tuebingen.de
Wed Apr 28 06:43:50 UTC 2004
Hallo Midnight Commanders,
The following little patch will make happy all cygwin users.
Cygwin can have paths that begin with two "/"s --- these are
net directories. They look like this:
//computername/sharename/blablabla...
The two slashes at the beginning mustn't be converted to one single
slash!
The patch was tested with mc-4.6.0 (cygwin's mc-4.6.0-4).
Cheers
Klaus Stehle
Here is the patch:
--- src/utilunix.c.orig 2002-12-26 15:47:46.000000000 +0100
+++ src/utilunix.c 2004-04-14 19:07:59.160044800 +0100
@@ -627,6 +627,11 @@
if (!path[start])
break;
+#ifdef __CYGWIN__
+ /* cygwin's net directories begin with "//" */
+ if (start == 0 && i == 1) continue;
+#endif
+
#if defined(__QNX__) && !defined(__QNXNTO__)
/*
** QNX accesses the directories of nodes on its peer-to-peer
More information about the mc-devel
mailing list