summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_msdos
AgeCommit message (Expand)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-4/+4
2018-09-24Use unveil(2). These programs fit together in various strange ways,deraadt2-2/+7
2017-06-27Avoid the possibility of accessing an array out of bounds.jsg1-1/+3
2016-10-10Rename BIOS parameter block field from bsPBP to bsBPB. This typobluhm1-2/+2
2016-05-28Another misplaced pledge disklabel that needs to be removed because oftb1-4/+1
2015-12-10Remove NULL-checks before free(). ok tb@mmcc2-8/+5
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become morederaadt1-1/+5
2015-10-14Since the fsck_* programs now only handle one filesystem, this createsderaadt1-1/+5
2015-10-14Only accept one filesystem/device as argument for checking. Few peoplederaadt2-18/+12
2015-09-27Mark ask() as printf-like; split up a pwarn() with variable number of specifiersguenther3-12/+12
2015-08-20<stdlib.h> is included, so do not need to cast result fromderaadt1-3/+3
2015-07-27document "F" in interactive mode, like for fsck.8;jmc1-2/+13
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt3-8/+8
2014-11-18Nuke some obvious #include duplications.krw1-2/+1
2014-07-11Remove redundant check and wrong fix: fat.c checks already take caretobias1-20/+4
2014-07-10Uninitialized values (-1) in FSInfo are perfectly valid.tobias1-4/+6
2014-07-10Avoid out of boundary access when checking invalid long filenames.tobias1-1/+9
2014-07-10Validate file system information which are critical for fsck_msdos operation.tobias1-2/+13
2014-07-10Validate number of FATs.tobias1-1/+5
2014-07-09Merge memory leak fix from NetBSD's dir.c revision 1.20, but actuallytobias2-9/+10
2014-06-18Always keep length of cluster chain up to date, otherwise the drop oftobias2-5/+18
2014-06-16Merge NetBSD commit:tobias8-65/+9
2014-06-14Avoid infinite loop if cluster chain is a cyclic list.tobias1-4/+12
2014-06-14Fix memory leaks in bootblock handling.tobias1-29/+42
2014-06-14Fix regression of 1.16: write fsinfo, not block into FSInfo region.tobias1-2/+2
2014-06-14Fix regression of 1.20 by properly incrementing pointer.tobias1-3/+3
2014-06-10Fix off by one when writing FAT for FAT12 filesystems.tobias1-7/+9
2014-06-09Fix possible out of boundary access if filesystem is full or corrupt.tobias1-2/+3
2013-08-12Add missing \n after a warning.rapha1-2/+2
2012-03-31Make fsck_msdos work with non-512-byte sector devices. Problem notedkrw4-58/+128
2010-12-18add some off_t and ssize_t love; ok stsp millertderaadt1-16/+25
2010-12-17Add missing util.h include for opendev()millert1-1/+2
2010-11-17Switch fsck_msdos(8) to opendev(3) so that it can handle disklabel UIDs.jsing2-14/+19
2010-08-12Print the real device name followed by the disklabel UID in parenthesisjsing1-2/+2
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt5-29/+5
2008-02-07Check reads and lseek correctly for unsigned return; ok krw@ian2-23/+27
2007-12-30sort flags in both synopsis and usagesobrado1-3/+3
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt1-4/+5
2007-05-31convert to new .Dd format;jmc1-2/+2
2006-11-11Fix memory leak, from Charles Longeau, many okayspedro1-3/+5
2006-07-19Only compare important parts of the boot block with the backup copy,tom1-4/+19
2006-05-27newline fix + s/perror/xperror since we arethib4-30/+30
2006-04-02malloc(x * y) -> calloc(x, y) from adobriyan AT gmail.com, with tweaksdjm1-5/+3
2006-03-30when asking y or n, accept "F" which forces yes from the on. i havederaadt1-3/+7
2006-03-20NetBSD Coverity CID 2302: Free fat if fatal error to avoid leak.dhill1-3/+7
2005-02-03sync usage outputjaredy1-3/+3
2005-02-03- simplify, normalize, and sync usage/synopsis formsjaredy1-31/+31
2004-07-17some ansi; khalek@linuxgamers.netderaadt5-118/+45
2003-07-29spacesderaadt4-13/+13
2003-03-30snprintfderaadt1-3/+3