canonicalize: fix // handling
authorEric Blake <eblake@redhat.com>
Sat, 4 Feb 2012 16:46:32 +0000 (09:46 -0700)
committerEric Blake <eblake@redhat.com>
Sat, 4 Feb 2012 16:57:05 +0000 (09:57 -0700)
commit3664fcdfef9e833fa9414e343a933d17a7d26740
tree1c3db6a2e25102afe10ce4340a4fe6a578e21010
parentf2d741e7b9b60c6bfc1226bae87ffb4cd19e9f27
canonicalize: fix // handling

On Cygwin, and other platforms where // is detected as distinct
from / at configure time, the canonicalize routines were incorrectly
treating all instances of multiple leading slashes as //.
See also coreutils bug http://debbugs.gnu.org/10472

* lib/canonicalize.c (canonicalize_filename_mode): Don't convert
/// to //, since only // is special.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/canonicalize.c