--- old/src/windows/native/java/io/canonicalize_md.c 2013-08-08 11:45:47.880579045 -0700 +++ new/src/windows/native/java/io/canonicalize_md.c 2013-08-08 11:45:47.752579049 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -179,6 +179,10 @@ wdots(WCHAR *start) { WCHAR *p = start; + // Skip "\\.\" prefix + if (wcslen(p) > 4 && !wcsncmp(p, L"\\\\.\\", 4)) + p = p + 4; + while (*p) { if ((p = wcschr(p, L'.')) == NULL) // find next occurence of '.' return 0; // no more dots