Commit Graph

97 Commits

Author SHA1 Message Date
ws ebd1f55e89 Only compare the interesting part of the bootblock with its backup. 2003-07-24 19:25:46 +00:00
itojun 0e4dc5229d use bounded string op 2003-07-13 08:16:15 +00:00
matt 25b98a109b Eliminate a -Wshadow warning 2003-02-28 05:50:33 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz 2fb4b1db52 New sentence, new line. By Robert Elz with minimal fixes. 2002-10-01 13:40:23 +00:00
lukem 7360d7b6ae Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path 2002-08-19 10:16:51 +00:00
wiz c632c8bea4 __STDC__ is always defined on NetBSD. 2002-05-25 23:45:12 +00:00
augustss da3c0f78d9 Allow check to proceed with bad backup boot block if we're doing a readonly
check.
2001-12-22 17:25:20 +00:00
wiz 8d4080ddcb Drop an unnecessary .Pp. 2001-11-16 11:36:33 +00:00
wiz 4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
wiz 30b2bf87ed Various typos in comments (neccessary, sceme, choise, ...). 2001-07-26 15:05:07 +00:00
wiz 73f545bb5b Drop arguments of .Os. 2001-06-05 11:22:41 +00:00
wiz 8e78c80273 Make WARNS=2 safe, and set WARNS to 2. 2001-04-06 16:52:41 +00:00
lukem ca48483336 minor knf 2001-01-05 01:41:34 +00:00
is 9979da6cbb Format string cleanups by Bill Sommerfeld. 2000-10-10 20:24:49 +00:00
abs 3b81524ad0 if readboot() calls pfatal(), we need to print a \n before exiting 2000-09-15 22:11:41 +00:00
jdolecek fe6381bfd1 add a prototype for _readfat() added in last commit and make it static, so
that it's possible to compile this with -Wstrict-prototypes -Wmissing-prototypes

Breakage reported by Jeff Rizzo <riz@boogers.sf.ca.us> on current-users.
2000-04-26 16:45:02 +00:00
jdolecek 4ab4989737 Recognize "dirty" signature on FAT as set by Windows 95 OSR2+ and don't report
it just as "odd byte sequence". Handle the dirty flag similar way
it's treated on e.g. FFS - e.g. clear it separately from rest of FAT.
Changing of FAT is now postponed until after all checks are done,
check.c:checkfilesys() was cleaned considerably and several messages
has been adjusted to be more accurate.

If file system was modified and no error has occured, just return 0
instead of 4 - there is no need for forcing a reboot in this case.

This addresses bin/5638 by Christos Zoulas.
2000-04-25 23:02:51 +00:00
mycroft f6590b22cd Clean up SYNOPSIS formatting. 1999-03-07 11:02:05 +00:00
ws ea31d33a4a Since M$ doesn't maintain the FSINFO block correctly,
don't treat errors there as modifications.
1998-10-06 14:31:58 +00:00
ross 029a64cc29 from Erik Bertelsen <erik@mediator.uni-c.dk>
{ put } { in } { lots } { of } { these } { to } { shut } { up } { egcs }
1998-08-25 19:18:12 +00:00
mycroft 519d858510 __AUDIT__ cleanup. 1998-07-28 19:22:54 +00:00
ws c17a22a40a Fix some bugs & annoyances when reparing defect disks 1998-01-22 18:48:43 +00:00
ws d445160e23 Add support for FAT32
Support dropping lost cluster chains (on request by Christoph Badura)
While being here, fix some minor bugs, mostly with format strings
1997-10-17 11:19:23 +00:00
enami b8a2598653 Use .Nm "" instead of .Nm fsck_msdos in SYNOPSIS. 1997-10-11 02:30:24 +00:00
christos e230a48b57 CFLAGS->CPPFLAGS 1997-10-10 19:47:50 +00:00
lukem 76e13a0128 all but the first .Nm in SYNOPSIS need to be spelt out. [bin/4256] 1997-10-10 16:12:45 +00:00
enami 21d836180a Don't declare optind. 1997-10-01 02:18:14 +00:00
lukem 6277ca4089 use .Nm correctly 1997-09-15 01:39:32 +00:00
lukem 5a94f6748f * cleanup for WARNS=1
* getopt returns -1 not EOF
* cleanup manpage
1997-09-14 14:40:10 +00:00
ws daa7d68f2a Fix a few bugs, especially when repairing disks:
Print correct pathname in error messages
Fix unterminating loop when trying to correct a bad fat
Require fat media byte to be the same as the one in the bpb
Fix unterminating loop when looking for free directory slot in LOST.DIR
(bad disk image provided by Christoph Badura)
1997-09-08 14:05:30 +00:00
gwr 10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
ws fdbcbfc254 Fix handling of clusters marked bad
Noted by Rafal Boni
1997-01-03 14:32:47 +00:00
cgd 313e12dec4 clean up and add a fair bit of text. document -f (and the fact that it's
ignored).
1996-10-17 20:41:24 +00:00
cgd 139fcefc1f include -f in usage, removed 'v' from getopt string since it's not handled 1996-10-17 20:29:53 +00:00
christos c9ec66c20b Accept -f flag, but do nothing with it. 1996-10-03 20:09:44 +00:00
christos a0c84e7de2 util -> fsutil 1996-09-27 23:22:50 +00:00
ws 82cdedc3cd Fix delete() call in dir.c differently than Christos' way.
Require at least one filesystem as program argument.
Update man page to reflect the latter.
1996-09-24 13:17:18 +00:00
christos 442314ab53 - use error printing code from fsck(8)
- remove fstab walking code
- add missing prototypes
- add missing argument in dir.c near "Truncate", where delete() was being
  called with fewer args. I think the missing argument should be a zero,
  but Wolfgang should check...
1996-09-23 16:27:56 +00:00
ws 7918e50abb Fix null pointer derefernce
Fixes PR#2765. Thanks David.
1996-09-17 15:34:05 +00:00
christos 74d9e3de3f Document -p (preen) option. If there are no filesystems specified on the
command line, get them from /etc/fstab when we are preening.
1996-09-11 20:35:14 +00:00
christos 2842b1a353 Fix gcc warnings. 1996-09-11 20:31:24 +00:00
ws 25e3d62e87 Don't allocate data structures for non-directories
Free any data structures when finishing a check (at the latest)
1996-05-28 19:51:11 +00:00
ws a89a16b50d Check return values of malloc
Generate full pathnames only on request
Minor cleanup, RCS Ids in .h files
1996-05-25 17:09:43 +00:00
ws 6ae4c91a82 Add fsck utility for msdosfs 1996-05-14 17:39:21 +00:00