aboutsummaryrefslogtreecommitdiff
path: root/devel/libvolume_id
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2007-05-30 20:20:09 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2007-05-30 20:20:09 +0000
commit0632411f36343a59f15f16bbfda53e774ab2943b (patch)
tree8aacf580306e13865bb26070b26c4a348f0231f1 /devel/libvolume_id
parentc0c54fbe75137011056cc2e71f5105f4818972da (diff)
downloadports-0632411f36343a59f15f16bbfda53e774ab2943b.tar.gz
ports-0632411f36343a59f15f16bbfda53e774ab2943b.zip
Notes
Diffstat (limited to 'devel/libvolume_id')
-rw-r--r--devel/libvolume_id/Makefile1
-rw-r--r--devel/libvolume_id/files/patch-fat.c38
2 files changed, 39 insertions, 0 deletions
diff --git a/devel/libvolume_id/Makefile b/devel/libvolume_id/Makefile
index 1d041338f293..0658217f5806 100644
--- a/devel/libvolume_id/Makefile
+++ b/devel/libvolume_id/Makefile
@@ -6,6 +6,7 @@
PORTNAME= libvolume_id
PORTVERSION= 0.75.0
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.marcuscom.com/downloads/
diff --git a/devel/libvolume_id/files/patch-fat.c b/devel/libvolume_id/files/patch-fat.c
new file mode 100644
index 000000000000..2780d613c9de
--- /dev/null
+++ b/devel/libvolume_id/files/patch-fat.c
@@ -0,0 +1,38 @@
+--- fat.c.orig Wed May 30 16:16:49 2007
++++ fat.c Wed May 30 16:17:12 2007
+@@ -277,7 +277,7 @@ magic:
+
+ label = get_attr_volume_id(dir, root_dir_entries);
+
+- vs = (struct vfat_super_block *) volume_id_get_buffer(id, off, 0x200);
++ vs = (struct vfat_super_block *) volume_id_get_buffer(id, off, sector_size);
+ if (vs == NULL)
+ return -1;
+
+@@ -294,7 +294,7 @@ magic:
+ fat32:
+ /* FAT32 should have a valid signature in the fsinfo block */
+ fsinfo_sect = le16_to_cpu(vs->type.fat32.fsinfo_sector);
+- buf = volume_id_get_buffer(id, off + (fsinfo_sect * sector_size), 0x200);
++ buf = volume_id_get_buffer(id, off + (fsinfo_sect * sector_size), sector_size);
+ if (buf == NULL)
+ return -1;
+ fsinfo = (struct fat32_fsinfo *) buf;
+@@ -303,7 +303,7 @@ fat32:
+ if (memcmp(fsinfo->signature2, "\x72\x72\x41\x61", 4) != 0)
+ err("Found invalid signature2: 0x%08x", fsinfo->signature2);
+
+- vs = (struct vfat_super_block *) volume_id_get_buffer(id, off, 0x200);
++ vs = (struct vfat_super_block *) volume_id_get_buffer(id, off, sector_size);
+ if (vs == NULL)
+ return -1;
+
+@@ -355,7 +355,7 @@ fat32:
+ if (maxloop == 0)
+ dbg("reached maximum follow count of root cluster chain, give up");
+
+- vs = (struct vfat_super_block *) volume_id_get_buffer(id, off, 0x200);
++ vs = (struct vfat_super_block *) volume_id_get_buffer(id, off, sector_size);
+ if (vs == NULL)
+ return -1;
+