diff options
author | Ron Yorston <rmy@pobox.com> | 2021-10-13 14:21:18 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-10-13 14:21:18 +0100 |
commit | 4859ddcb20616718efbea12c6bf8b27c469b68de (patch) | |
tree | 46c2cf67214f70f3361125d28e3560047b7b384c /TODO | |
parent | 35b9217405d9c3ad8ebeab23f072d35327d25cfe (diff) | |
download | busybox-w32-4859ddcb20616718efbea12c6bf8b27c469b68de.tar.gz busybox-w32-4859ddcb20616718efbea12c6bf8b27c469b68de.tar.bz2 busybox-w32-4859ddcb20616718efbea12c6bf8b27c469b68de.zip |
win32: fix bb_get_last_path_component_nostrip()
Finding the last component of a path didn't properly handle a
mixture of slashes and backslashes, paths relative to another
drive or bare UNC paths. The following were incorrect:
$ basename /dir\\file
dir\file
$ basename c:file
c:file
$ basename //HOST/share
share
With this patch the results are now:
$ basename /dir\\file
file
$ basename c:file
file
$ basename //HOST/share
//HOST/share
Diffstat (limited to 'TODO')
0 files changed, 0 insertions, 0 deletions