Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/fsck_udf Remove the error condition for these cases; th...



details:   https://anonhg.NetBSD.org/src/rev/d6a1e4739e9d
branches:  trunk
changeset: 365742:d6a1e4739e9d
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Fri Apr 22 21:07:56 2022 +0000

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

diffstat:

 sbin/fsck_udf/main.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r c385f4a3d0bd -r d6a1e4739e9d sbin/fsck_udf/main.c
--- a/sbin/fsck_udf/main.c      Fri Apr 22 21:00:28 2022 +0000
+++ b/sbin/fsck_udf/main.c      Fri Apr 22 21:07:56 2022 +0000
@@ -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 @@
                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 @@
                error = udf_impl_extattr_check(implext);
                if (error) {
                        /* VAT LVExtension checksum failed */
+                       error = 0;
                        vat_writeout = 1;
                        goto ok;
                }
@@ -1888,6 +1890,7 @@
                /* 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;
                }



Home | Main Index | Thread Index | Old Index