From 6e7bf194bf26caf86b00e74ae79eefc474918f89 Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Sat, 14 Jan 2006 21:32:41 +0000 Subject: Give UDF a chance of working on big-endian architectures, okay miod@ --- sys/isofs/udf/udf_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/isofs/udf/udf_vfsops.c') diff --git a/sys/isofs/udf/udf_vfsops.c b/sys/isofs/udf/udf_vfsops.c index 7b91e887700..bd3c662b9e9 100644 --- a/sys/isofs/udf/udf_vfsops.c +++ b/sys/isofs/udf/udf_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udf_vfsops.c,v 1.4 2006/01/14 19:04:17 miod Exp $ */ +/* $OpenBSD: udf_vfsops.c,v 1.5 2006/01/14 21:32:40 pedro Exp $ */ /* * Copyright (c) 2001, 2002 Scott Long @@ -226,7 +226,7 @@ udf_checktag(struct desc_tag *tag, uint16_t id) itag = (uint8_t *)tag; - if (tag->id != id) + if (letoh16(tag->id) != id) return (EINVAL); for (i = 0; i < 15; i++) -- cgit v1.2.3