summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_msdos/main.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use unveil(2). These programs fit together in various strange ways,deraadt2018-09-241-1/+3
| | | | | so if a problem is encountered with this the whole set needs backout and study.
* Another misplaced pledge disklabel that needs to be removed because oftb2016-05-281-4/+1
| | | | | | | a DIOCGPDINFO that could be applied to a non-disk and thus cause a crash. After that ioctl, the program continues with pledge "stdio". ok beck semarie
* Use pledge "disklabel" as needed. The theory here is these tools become morederaadt2015-11-231-1/+5
| | | | | resistant against memory correctup, if a corrupt filesystem is given to them. ok krw
* Only accept one filesystem/device as argument for checking. Few peoplederaadt2015-10-141-11/+5
| | | | | | will be calling these directly, and not for the multiple filesystem case. fsck(8) is generally the parent and will handle things. ok semarie; this change will also help a goal jsing has
* Mark ask() as printf-like; split up a pwarn() with variable number of specifiersguenther2015-09-271-2/+1
| | | | ok beck@ millert@
* Merge NetBSD commit:tobias2014-06-161-8/+1
| | | | | | Move to 2 clause license, approved by Wolfgang Solfrank. ok deraadt@, krw@
* Make fsck_msdos work with non-512-byte sector devices. Problem notedkrw2012-03-311-2/+2
| | | | | | | | | | | | by and fixes tested by Alexey Vatchenko. Add a bunch of tests and error messages so whatever media/devices this breaks will be more easily fixed. Ignore invalid signatures since we have other checks and many media have missing signatures. Use character device to read disk even when called directly.
* Print the real device name followed by the disklabel UID in parenthesisjsing2010-08-121-2/+2
| | | | | | | when fsck is run against a disklabel UID. This allows a user to determine which device is really being scanned. ok krw@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-5/+1
| | | | | | | 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
* when asking y or n, accept "F" which forces yes from the on. i havederaadt2006-03-301-3/+7
| | | | | wished for this for 10+ year, but always forgotten to make the change after cleaning up a nasty file system; ok pedro millert
* sync usage outputjaredy2005-02-031-3/+3
|
* some ansi; khalek@linuxgamers.netderaadt2004-07-171-6/+4
|
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-17/+2
|
* 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.millert2002-02-161-4/+4
|
* make sure that va_start() has matching va_end()deraadt2001-09-051-2/+3
|
* remove extra externs not needed because of unistd.h (rest of tree will be done later.. contact me if you want to help)deraadt2000-01-221-3/+2
|
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-5/+5
|
* Update based on latest NetBSD version.millert1997-03-021-95/+21
| | | | | Now uses functions from util.[ch] instead of local ones. Also some anal KNF from me...
* Add -f to getopt() -- that'll teach me to test first.millert1997-02-281-3/+3
|
* Silently ignore -f so that "fsck -f" works if you have an msdosmillert1997-02-281-2/+5
| | | | partition listed in fstab.
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-3/+3
|
* update rcsidderaadt1996-06-231-1/+2
|
* from ws;deraadt1996-06-101-22/+2
| | | | | | | | 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)
* add fsck_msdosderaadt1996-05-221-0/+252