OpenBSD CVS

CVS log for src/sbin/fsck_msdos/dir.c


[BACK] Up to [local] / src / sbin / fsck_msdos

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Tue Jun 27 12:10:21 2017 UTC (6 years, 11 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, HEAD
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored)

Avoid the possibility of accessing an array out of bounds.
Found with cppcheck. ok krw@

Revision 1.30 / (download) - annotate - [select for diffs], Thu Dec 10 17:26:59 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.29: +2 -3 lines
Diff to previous 1.29 (colored)

Remove NULL-checks before free(). ok tb@

Revision 1.29 / (download) - annotate - [select for diffs], Thu Aug 20 22:02:21 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

<stdlib.h> is included, so do not need to cast result from
malloc, calloc, realloc*
ok krw millert

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:58 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.27: +3 -4 lines
Diff to previous 1.27 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.27 / (download) - annotate - [select for diffs], Tue Nov 18 20:51:00 2014 UTC (9 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.26: +1 -2 lines
Diff to previous 1.26 (colored)

Nuke some obvious #include duplications.

ok espie@ deraadt@ millert@ tedu@

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jul 11 14:35:19 2014 UTC (9 years, 10 months ago) by tobias
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.25: +4 -20 lines
Diff to previous 1.25 (colored)

Remove redundant check and wrong fix: fat.c checks already take care
about cluster chains.  If the user didn't want to fix them at that time,
he asks for trouble -- and these checks didn't help in all cases either.

discussed with and ok krw@

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 10 18:59:49 2014 UTC (9 years, 10 months ago) by tobias
Branch: MAIN
Changes since 1.24: +9 -1 lines
Diff to previous 1.24 (colored)

Avoid out of boundary access when checking invalid long filenames.

Addressed by NetBSD in revision 1.24, but instead of ignoring the filename,
consider it invalid -- because it is.

ok krw@, tedu@

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jul 9 18:32:34 2014 UTC (9 years, 10 months ago) by tobias
Branch: MAIN
Changes since 1.23: +9 -6 lines
Diff to previous 1.23 (colored)

Merge memory leak fix from NetBSD's dir.c revision 1.20, but actually
release all reserved memory chunks in all error cases.

with input by and ok tedu@, ok deraadt@

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jun 18 17:29:07 2014 UTC (9 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.22: +8 -4 lines
Diff to previous 1.22 (colored)

Always keep length of cluster chain up to date, otherwise the drop of
superfluous clusters can lead to out of boundary access.

ok krw@

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jun 16 18:33:33 2014 UTC (9 years, 11 months ago) by tobias
Branch: MAIN
Changes since 1.21: +1 -8 lines
Diff to previous 1.21 (colored)

Merge NetBSD commit:
Move to 2 clause license, approved by Wolfgang Solfrank.

ok deraadt@, krw@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:33 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.20: +1 -6 lines
Diff to previous 1.20 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.20 / (download) - annotate - [select for diffs], Sat May 27 22:30:09 2006 UTC (18 years ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.19: +12 -12 lines
Diff to previous 1.19 (colored)

newline fix + s/perror/xperror since we are
using a home rolled version.

ok pedro@

Revision 1.19 / (download) - annotate - [select for diffs], Sat Jul 17 02:14:33 2004 UTC (19 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.18: +21 -56 lines
Diff to previous 1.18 (colored)

some ansi; khalek@linuxgamers.net

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jul 29 18:38:35 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

spaces

Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 30 08:31:53 2003 UTC (21 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

snprintf

Revision 1.16 / (download) - annotate - [select for diffs], Thu Mar 13 09:09:25 2003 UTC (21 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

lots of sprintf -> snprintf and strcpy -> strlcpy; checked by tedu

Revision 1.15 / (download) - annotate - [select for diffs], Sun Feb 17 19:42:27 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.14: +10 -10 lines
Diff to previous 1.14 (colored)

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)

Revision 1.14 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:34 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.13: +8 -8 lines
Diff to previous 1.13 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jul 7 18:26:12 2001 UTC (22 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.12: +4 -3 lines
Diff to previous 1.12 (colored)

major -Wall cleanup, almost complete

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jul 3 13:03:45 2001 UTC (22 years, 11 months ago) by ian
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Put missing \n's in som error messages; consolidate redundant "if" (OK theo@).

Revision 1.11 / (download) - annotate - [select for diffs], Mon Sep 6 12:40:52 1999 UTC (24 years, 9 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.10: +12 -9 lines
Diff to previous 1.10 (colored)

Corrected overflow logic in fullpath.

<subliminal FreeBSD/NetBSD>Oh yeah, baby, you want that one</subliminal :->

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 30 20:29:35 1999 UTC (24 years, 9 months ago) by espie
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Fix obvious logic error (from netbsd)

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jan 11 20:40:31 1998 UTC (26 years, 4 months ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.8: +121 -54 lines
Diff to previous 1.8 (colored)

FAT32 support from NetBSD by Wolfgang Solfrank.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 11 08:15:24 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.7: +12 -13 lines
Diff to previous 1.7 (colored)

from ws@netbsd; 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)

Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 2 05:25:53 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.6: +79 -57 lines
Diff to previous 1.6 (colored)

Update based on latest NetBSD version.
Now uses functions from util.[ch] instead of local ones.
Also some anal KNF from me...

Revision 1.6 / (download) - annotate - [select for diffs], Fri Feb 28 08:36:11 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

From NetBSD (ws)
Fix handling of clusters marked bad; Noted by Rafal Boni

Revision 1.5 / (download) - annotate - [select for diffs], Wed Sep 18 06:59:03 1996 UTC (27 years, 8 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

"prs are sometimes wrong" (theo)
fix wrong fix. "kak v zadnitsu kol, russkiy rock-n-roll" (4epHeuKuu)

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 17 19:31:18 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

realpath fix, do not dump; pr#2765, david@mono.org

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 23 14:30:42 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

update rcsid

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jun 10 04:38:16 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +269 -91 lines
Diff to previous 1.1 (colored)

from ws;
Check return values of malloc
Generate full pathnames only on request
Minor cleanup, RCS Ids in .h files
Don't allocate data structures for non-directories
Free any data structures when finishing a check (at the latest)

Revision 1.1 / (download) - annotate - [select for diffs], Wed May 22 11:23:54 1996 UTC (28 years ago) by deraadt
Branch: MAIN

add fsck_msdos

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.