Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/newfs_udf Fix endian bug with VAT 1.50 format
details: https://anonhg.NetBSD.org/src/rev/46031e362c66
branches: trunk
changeset: 365810:46031e362c66
user: reinoud <reinoud%NetBSD.org@localhost>
date: Tue Apr 26 13:40:15 2022 +0000
description:
Fix endian bug with VAT 1.50 format
diffstat:
sbin/newfs_udf/udf_core.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7e42ba5e3548 -r 46031e362c66 sbin/newfs_udf/udf_core.c
--- a/sbin/newfs_udf/udf_core.c Tue Apr 26 13:27:24 2022 +0000
+++ b/sbin/newfs_udf/udf_core.c Tue Apr 26 13:40:15 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_core.c,v 1.5 2022/04/25 20:41:25 reinoud Exp $ */
+/* $NetBSD: udf_core.c,v 1.6 2022/04/26 13:40:15 reinoud Exp $ */
/*
* Copyright (c) 2006, 2008, 2021, 2022 Reinoud Zandijk
@@ -30,7 +30,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: udf_core.c,v 1.5 2022/04/25 20:41:25 reinoud Exp $");
+__RCSID("$NetBSD: udf_core.c,v 1.6 2022/04/26 13:40:15 reinoud Exp $");
#include <stdio.h>
#include <stdlib.h>
@@ -2922,7 +2922,7 @@
bpos = ((uint8_t *) implext->data) + 4;
vatlvext = (struct vatlvext_extattr_entry *) bpos;
- vatlvext->unique_id_chk = udf_rw64(fe->unique_id);
+ vatlvext->unique_id_chk = fe->unique_id;
vatlvext->num_files = udf_rw32(context.num_files);
vatlvext->num_directories = udf_rw32(context.num_directories);
memcpy(vatlvext->logvol_id, context.logical_vol->logvol_id,128);
Home |
Main Index |
Thread Index |
Old Index