Module Name:    src
Committed By:   reinoud
Date:           Fri Apr 22 21:07:56 UTC 2022

Modified Files:
        src/sbin/fsck_udf: main.c

Log Message:
Remove the error condition for these cases; the VAT LVExtension is
missing/corrupt but fsck_udf will reconstruct them anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sbin/fsck_udf/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/fsck_udf/main.c
diff -u src/sbin/fsck_udf/main.c:1.9 src/sbin/fsck_udf/main.c:1.10
--- src/sbin/fsck_udf/main.c:1.9	Fri Apr 22 21:00:28 2022
+++ src/sbin/fsck_udf/main.c	Fri Apr 22 21:07:56 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: main.c,v 1.9 2022/04/22 21:00:28 reinoud Exp $	*/
+/*	$NetBSD: main.c,v 1.10 2022/04/22 21:07:56 reinoud Exp $	*/
 
 /*
  * Copyright (c) 2022 Reinoud Zandijk
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: main.c,v 1.9 2022/04/22 21:00:28 reinoud Exp $");
+__RCSID("$NetBSD: main.c,v 1.10 2022/04/22 21:07:56 reinoud Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -1873,6 +1873,7 @@ udf_extract_vat(union dscrptr *dscr, uin
 		error = udf_extattr_search_intern(dscr, 2048, extstr, &offset, &a_l);
 		if (error) {
 			/* VAT LVExtension extended attribute missing */
+			error = 0;
 			vat_writeout = 1;
 			goto ok;
 		}
@@ -1881,6 +1882,7 @@ udf_extract_vat(union dscrptr *dscr, uin
 		error = udf_impl_extattr_check(implext);
 		if (error) {
 			/* VAT LVExtension checksum failed */
+			error = 0;
 			vat_writeout = 1;
 			goto ok;
 		}
@@ -1888,6 +1890,7 @@ udf_extract_vat(union dscrptr *dscr, uin
 		/* paranoia */
 		if (a_l != sizeof(*implext) -2 + udf_rw32(implext->iu_l) + sizeof(lvext)) {
 			/* VAT LVExtension size doesn't compute */
+			error = 0;
 			vat_writeout = 1;
 			goto ok;
 		}

Reply via email to