Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_ffs Fix clearing of permissions when finding unexp...
details: https://anonhg.NetBSD.org/src/rev/53df5651093d
branches: trunk
changeset: 372366:53df5651093d
user: martin <martin%NetBSD.org@localhost>
date: Fri Nov 18 07:41:31 2022 +0000
description:
Fix clearing of permissions when finding unexpected extended attributs
for swapped endian file systems. Ok: chs
diffstat:
sbin/fsck_ffs/pass1.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d103524b7ccf -r 53df5651093d sbin/fsck_ffs/pass1.c
--- a/sbin/fsck_ffs/pass1.c Fri Nov 18 06:53:06 2022 +0000
+++ b/sbin/fsck_ffs/pass1.c Fri Nov 18 07:41:31 2022 +0000
@@ -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 @@
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) {
Home |
Main Index |
Thread Index |
Old Index