1b6f85e2cb
Omit one unnecessary memory allocation for components of the path and create the resulting path directly given lengths of the components. Do not use basename(3) because there are 2 versions of this function which differs when argument ends with slash character, use strrchr() instead so we have consistent result. This also makes sure the function will do the right thing in corner cases (eg, empty pathname is given), when basename(3) return entirely another string. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> |
||
---|---|---|
.. | ||
codir.c | ||
cofile.c | ||
cofs.c | ||
coxattr.c | ||
Makefile.objs | ||
virtio-9p-coth.c | ||
virtio-9p-coth.h | ||
virtio-9p-device.c | ||
virtio-9p-handle.c | ||
virtio-9p-local.c | ||
virtio-9p-posix-acl.c | ||
virtio-9p-proxy.c | ||
virtio-9p-proxy.h | ||
virtio-9p-synth.c | ||
virtio-9p-synth.h | ||
virtio-9p-xattr-user.c | ||
virtio-9p-xattr.c | ||
virtio-9p-xattr.h | ||
virtio-9p.c | ||
virtio-9p.h |