6cea60aef5
The cd9660_open() does pass whole path to dirmatch() and we need to compare only the current path component, not full path. Additinally, skip over duplicate / (if any) and check if the last component in the path was meant to be directory (having trailing /). If it is in fact a file, error out. |
||
---|---|---|
.. | ||
amd64 | ||
geli | ||
i386 | ||
mips | ||
powerpc | ||
sparc64 | ||
zfs | ||
__main.c | ||
abort.c | ||
arp.c | ||
assert.c | ||
bcd.c | ||
bootp.c | ||
bootp.h | ||
bootparam.c | ||
bootparam.h | ||
bzipfs.c | ||
cd9660.c | ||
cd9660read.c | ||
close.c | ||
closeall.c | ||
crc32_libkern.c | ||
crc32.c | ||
crc32.h | ||
dev.c | ||
dosfs.c | ||
dosfs.h | ||
environment.c | ||
ether.c | ||
ext2fs.c | ||
fstat.c | ||
getopt.c | ||
gets.c | ||
globals.c | ||
gpt.c | ||
gpt.h | ||
gzipfs.c | ||
in_cksum.c | ||
inet_ntoa.c | ||
ioctl.c | ||
iodesc.h | ||
ip.c | ||
libsa.3 | ||
lseek.c | ||
Makefile | ||
Makefile.depend | ||
nandfs.c | ||
net.c | ||
net.h | ||
netif.c | ||
netif.h | ||
nfs.c | ||
nfsv2.h | ||
nullfs.c | ||
open.c | ||
pager.c | ||
panic.c | ||
pkgfs.c | ||
printf.c | ||
qdivrem.c | ||
quad.h | ||
random.c | ||
rarp.c | ||
read.c | ||
readdir.c | ||
rpc.c | ||
rpc.h | ||
rpcv2.h | ||
saioctl.h | ||
sbrk.c | ||
splitfs.c | ||
stand.h | ||
stat.c | ||
strcasecmp.c | ||
strdup.c | ||
strerror.c | ||
tftp.c | ||
tftp.h | ||
twiddle.c | ||
udp.c | ||
ufs.c | ||
ufsread.c | ||
uuid_from_string.c | ||
uuid_to_string.c | ||
write.c | ||
xlocale_private.h | ||
zalloc_defs.h | ||
zalloc_malloc.c | ||
zalloc_mem.h | ||
zalloc_protos.h | ||
zalloc.c |