summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ext2fs
AgeCommit message (Expand)AuthorFilesLines
2021-01-27shuffle externs (and definitions) around to satisfy -fno-commonderaadt2-39/+82
2019-12-17Use correct size when zeroing out dinode.millert1-2/+2
2019-07-01Oops, forgot to commit this patch.kevlo3-9/+9
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-5/+5
2019-02-06Replace overlapping memcpy() with memmove() in getpathname().millert1-3/+3
2018-09-24Use unveil(2). These programs fit together in various strange ways,deraadt1-1/+3
2018-09-16Use user_from_uid(3) and group_from_gid(3) in a few more placesmillert1-8/+5
2017-08-26Do not check the array but its length; based on a netbsd commit by christos@;otto2-4/+4
2016-12-16Eliminate some gcc warnings about 'unused variables', mostly bykrw1-1/+3
2016-04-28Fix fsck'ing. ext2fs_dinode grew extra bits to support ext4krw3-10/+15
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.krw2-7/+7
2015-11-25Do not do the early pledge, because hotroot() is a lie. fsck_extfsderaadt1-5/+1
2015-11-23Cannot pledge() in the hotroot casederaadt1-3/+4
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become morederaadt1-1/+6
2015-10-15corrects pledge code for fsck_ffs and fsck_ext2fssemarie1-1/+6
2015-10-14Since the fsck_* programs now only handle one filesystem, this createsderaadt1-21/+28
2015-10-14Only accept one filesystem/device as argument for checking. Few peoplederaadt2-13/+12
2015-09-10avoid divide by zero; from Michael McConvillederaadt1-2/+6
2015-09-05snprintf+write --> dprintfguenther1-5/+4
2015-08-20<stdlib.h> is included, so do not need to cast result fromderaadt3-11/+9
2015-07-27document "F" in interactive mode, like for fsck.8;jmc1-2/+13
2015-02-07When getopt processing flags, many should be flag=1 instead of flag++deraadt1-5/+5
2015-01-19remove #ifndef #define blocks trying to handle lack of BUFSIZderaadt1-5/+1
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt11-29/+32
2014-11-20remove sys/file.h includes in favor of fcntl.h where needed.tedu1-2/+1
2014-10-29remove ugly return value castsderaadt1-5/+3
2014-10-08trivial use of reallocarrayderaadt1-3/+3
2014-07-13kill fs2hXX/h2fsXX macros with letohXX/htoleXXpelikan7-173/+173
2014-07-13new superblock header needs fixespelikan1-2/+2
2014-07-11Prevent division by zero on erroneous file systems.tobias1-1/+4
2014-07-11fix dacl->size_hi header changepelikan1-3/+3
2014-05-24Use consistent format specifiers (%lld) and casts (long long) whenkrw1-6/+13
2014-05-24Don't potentially use stack garbage for e2d_type. Initializekrw1-1/+2
2014-05-22Nuke pointless dev_bsize variable which is always set to 512, and justkrw3-22/+19
2014-05-21Nuke some trailing whitespace to shrink subsequent diffs.krw3-6/+5
2014-05-20As suggested by guenther@ and millert@, replace seek+[read|write] withkrw1-15/+5
2013-11-22Kirk was being waaaay too chummy with the compiler when he trustedguenther1-4/+6
2013-04-25big int_t/time_t fixes; ok deraadt@ krw@otto1-2/+3
2013-04-24pretty print bigger off_tderaadt6-30/+39
2013-04-17ext2fs has a 32-bit time fields. store a u_int32_t of the real time_t --deraadt1-3/+3
2011-04-18Remove a header file that is only supposed to be used by the kernel.deraadt1-2/+1
2011-03-12These utilities can currently only operate with a 32-bit block number range,deraadt11-58/+58
2010-08-12Print the real device name followed by the disklabel UID in parenthesisjsing1-2/+2
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisdlg1-1/+2
2010-03-08if ncg == 1, there's no alternate superblock; from NetBSD; ok deraadt@otto1-1/+7
2010-01-10remove references to docs we no longer install;jmc1-6/+2
2009-12-10do not leak memory, found by parfait, ok millert ottoderaadt1-1/+3
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-19/+1
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt1-2/+2
2007-05-31convert to new .Dd format;jmc1-2/+2