4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00
Corinna Vinschen 2898a359b8 Cygwin: dirname: fix handling of leading slashes
Per https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/xbd_chap04.html:

  "A pathname that begins with two successive slashes may be interpreted
   in an implementation-defined manner, although more than two leading
   slashes shall be treated as a single slash."

So more than 2 leading slashes are supposed to be folded into one,
which our dirname neglected.  Fix that.

Fixes: 24e8fc6872a3b ("* cygwin.din (basename): Export.")
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-03-29 10:23:05 +02:00
..
2013-12-08 13:38:27 +00:00
2019-02-19 14:34:18 -06:00
2019-03-04 14:14:15 +01:00
2019-03-08 12:57:42 +01:00
2019-04-30 18:49:23 +02:00
2019-12-18 10:47:43 +01:00
2019-12-21 11:44:08 +01:00
2020-02-18 11:35:42 +01:00
2020-05-28 13:34:19 -04:00
2021-10-26 18:47:22 +02:00
2021-11-23 01:19:56 +09:00
2022-12-11 11:45:36 +01:00
2022-12-16 13:36:22 +00:00
2023-01-19 18:33:40 +01:00
2023-03-16 18:25:09 +01:00