summaryrefslogtreecommitdiffstats
path: root/sys/isofs/cd9660/cd9660_rrip.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1994-09-09 11:11:01 +0000
committerdfr <dfr@FreeBSD.org>1994-09-09 11:11:01 +0000
commit8e7267d0ad27e997e960e1713ecb2978f52bf940 (patch)
tree11e1907931568db42ca369145a988db150c08f84 /sys/isofs/cd9660/cd9660_rrip.c
parent07c3866a6e3d1bc84ae70e71b9dc5209d2c82321 (diff)
downloadFreeBSD-src-8e7267d0ad27e997e960e1713ecb2978f52bf940.zip
FreeBSD-src-8e7267d0ad27e997e960e1713ecb2978f52bf940.tar.gz
Fixed some confusion between the size of a logical block and the size of a
device block which was stopping symbolic links working. cd9660_readdir was incorrectly casting a pointer to the d_namlen field of a struct dirent to a (u_short*) which caused the directory entries "." and ".." to read incorrectly. Submitted by: dfr
Diffstat (limited to 'sys/isofs/cd9660/cd9660_rrip.c')
-rw-r--r--sys/isofs/cd9660/cd9660_rrip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/cd9660/cd9660_rrip.c b/sys/isofs/cd9660/cd9660_rrip.c
index 6d73374..78410a5 100644
--- a/sys/isofs/cd9660/cd9660_rrip.c
+++ b/sys/isofs/cd9660/cd9660_rrip.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)cd9660_rrip.c 8.2 (Berkeley) 1/23/94
- * $Id$
+ * $Id: cd9660_rrip.c,v 1.2 1994/08/02 07:41:26 davidg Exp $
*/
#include <sys/param.h>
@@ -521,7 +521,7 @@ cd9660_rrip_loop(isodir,ana,table)
if (ana->iso_ce_blk >= ana->imp->volume_space_size
|| ana->iso_ce_off + ana->iso_ce_len > ana->imp->logical_block_size
|| bread(ana->imp->im_devvp,
- ana->iso_ce_blk * ana->imp->logical_block_size / DEV_BSIZE,
+ iso_lblktodaddr(ana->imp, ana->iso_ce_blk),
ana->imp->logical_block_size,NOCRED,&bp))
/* what to do now? */
break;
OpenPOWER on IntegriCloud