summaryrefslogtreecommitdiffstats
path: root/sys/fs/udf/udf_vfsops.c
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2006-02-03 15:25:52 +0000
committerwill <will@FreeBSD.org>2006-02-03 15:25:52 +0000
commita82365919d8a02975ce00023c80d7bd078e7cc86 (patch)
tree099f6f51e6843d7f67a29ee82ef85f959ff3e3ea /sys/fs/udf/udf_vfsops.c
parent3040542d9eb95869fd12a82cba2c21f2ac31af3d (diff)
downloadFreeBSD-src-a82365919d8a02975ce00023c80d7bd078e7cc86.zip
FreeBSD-src-a82365919d8a02975ce00023c80d7bd078e7cc86.tar.gz
Make UDF endian-safe.
Submitted by: Pedro Martelletto <pedro@ambientworks.net> (via scottl) Tested on: sparc64
Diffstat (limited to 'sys/fs/udf/udf_vfsops.c')
-rw-r--r--sys/fs/udf/udf_vfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c
index 5609d16..da3de98 100644
--- a/sys/fs/udf/udf_vfsops.c
+++ b/sys/fs/udf/udf_vfsops.c
@@ -293,7 +293,7 @@ udf_checktag(struct desc_tag *tag, uint16_t id)
itag = (uint8_t *)tag;
- if (tag->id != id)
+ if (le16toh(tag->id) != id)
return (EINVAL);
for (i = 0; i < 15; i++)
OpenPOWER on IntegriCloud