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 in logical volume creation for...



details:   https://anonhg.NetBSD.org/src/rev/a384d944312f
branches:  trunk
changeset: 365806:a384d944312f
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Apr 25 20:41:25 2022 +0000

description:
Fix endian bug in logical volume creation for metadata/VAT partitions.

diffstat:

 sbin/newfs_udf/udf_core.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r be3ca1fbf357 -r a384d944312f sbin/newfs_udf/udf_core.c
--- a/sbin/newfs_udf/udf_core.c Mon Apr 25 15:48:57 2022 +0000
+++ b/sbin/newfs_udf/udf_core.c Mon Apr 25 20:41:25 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: udf_core.c,v 1.4 2022/04/22 21:22:14 reinoud Exp $ */
+/* $NetBSD: udf_core.c,v 1.5 2022/04/25 20:41:25 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.4 2022/04/22 21:22:14 reinoud Exp $");
+__RCSID("$NetBSD: udf_core.c,v 1.5 2022/04/25 20:41:25 reinoud Exp $");
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -1206,7 +1206,7 @@
 
        /* just one fsd for now */
        lvd->lv_fsd_loc.len = udf_rw32(sector_size);
-       lvd->lv_fsd_loc.loc.part_num = udf_rw32(context.metadata_part);
+       lvd->lv_fsd_loc.loc.part_num = udf_rw16(context.metadata_part);
        lvd->lv_fsd_loc.loc.lb_num   = udf_rw32(layout.fsd);
 
        crclen  = sizeof(struct logvol_desc) - 1 - UDF_DESC_TAG_LENGTH;



Home | Main Index | Thread Index | Old Index