From ce102225bd4dbf744bdfe29d60b06a676f7235ad Mon Sep 17 00:00:00 2001 From: pfg Date: Mon, 14 Jul 2014 21:32:40 +0000 Subject: newfs_msdosfs: Respect FSFIXFAT Fix some whitespace issues while here. Obtained from: NetBSD (rev. 1.9) MFC after: 3 days --- sbin/fsck_msdosfs/check.c | 2 +- sbin/fsck_msdosfs/ext.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sbin') diff --git a/sbin/fsck_msdosfs/check.c b/sbin/fsck_msdosfs/check.c index 1fb005d..083389e 100644 --- a/sbin/fsck_msdosfs/check.c +++ b/sbin/fsck_msdosfs/check.c @@ -142,7 +142,7 @@ checkfilesys(const char *fname) goto out; /* now write the FATs */ - if (mod & FSFATMOD) { + if (mod & (FSFATMOD|FSFIXFAT)) { if (ask(1, "Update FATs")) { mod |= writefat(dosfs, &boot, fat, mod & FSFIXFAT); if (mod & FSFATAL) diff --git a/sbin/fsck_msdosfs/ext.h b/sbin/fsck_msdosfs/ext.h index 9793e12..ef9c420 100644 --- a/sbin/fsck_msdosfs/ext.h +++ b/sbin/fsck_msdosfs/ext.h @@ -26,7 +26,7 @@ */ #ifndef EXT_H -#define EXT_H +#define EXT_H #include @@ -69,8 +69,8 @@ int checkfilesys(const char *); #define FSFATMOD 4 /* The FAT was modified */ #define FSERROR 8 /* Some unrecovered error remains */ #define FSFATAL 16 /* Some unrecoverable error occurred */ -#define FSDIRTY 32 /* File system is dirty */ -#define FSFIXFAT 64 /* Fix file system FAT */ +#define FSDIRTY 32 /* File system is dirty */ +#define FSFIXFAT 64 /* Fix file system FAT */ /* * read a boot block in a machine independent fashion and translate -- cgit v1.1