Jim Meyering <address@hidden> writes:
> So cygwin has are two root directories, / and //, with distinct dev/inode
> pairs?
That would imply that there are two distinct trees. But, as I
understand it, / is a subtree of //. If so, isn't // the "real" root,
and can't the algorithm simply use the dev and ino for // on Cygwin,
so that getcwd always returns a name that begins with "//"? This
wouldn't remove the need for some //-specific stuff, but it would mean
fewer changes to the code.