Module Name: src Committed By: martin Date: Fri Nov 18 07:41:31 UTC 2022
Modified Files: src/sbin/fsck_ffs: pass1.c Log Message: Fix clearing of permissions when finding unexpected extended attributs for swapped endian file systems. Ok: chs To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/sbin/fsck_ffs/pass1.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_ffs/pass1.c diff -u src/sbin/fsck_ffs/pass1.c:1.61 src/sbin/fsck_ffs/pass1.c:1.62 --- src/sbin/fsck_ffs/pass1.c:1.61 Thu Nov 17 18:57:16 2022 +++ src/sbin/fsck_ffs/pass1.c Fri Nov 18 07:41:31 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: pass1.c,v 1.61 2022/11/17 18:57:16 martin Exp $ */ +/* $NetBSD: pass1.c,v 1.62 2022/11/18 07:41:31 martin Exp $ */ /* * Copyright (c) 1980, 1986, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)pass1.c 8.6 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: pass1.c,v 1.61 2022/11/17 18:57:16 martin Exp $"); +__RCSID("$NetBSD: pass1.c,v 1.62 2022/11/18 07:41:31 martin Exp $"); #endif #endif /* not lint */ @@ -437,7 +437,7 @@ checkinode(ino_t inumber, struct inodesc dp->dp2.di_extsize = iswap32(0); dp->dp2.di_extb[0] = iswap64(0); dp->dp2.di_extb[1] = iswap64(0); - dp->dp2.di_mode &= ~07777; + dp->dp2.di_mode &= iswap16(IFMT); inodirty(); } if (is_ufs2ea && iswap32(dp->dp2.di_extsize) > 0) {