summaryrefslogtreecommitdiff
path: root/sbin/fsck_ext2fs
AgeCommit message (Expand)Author
2018-09-24Use unveil(2). These programs fit together in various strange ways,Theo de Raadt
2018-09-16Use user_from_uid(3) and group_from_gid(3) in a few more placesTodd C. Miller
2017-08-26Do not check the array but its length; based on a netbsd commit by christos@;Otto Moerbeek
2016-12-16Eliminate some gcc warnings about 'unused variables', mostly byKenneth R Westerback
2016-04-28Fix fsck'ing. ext2fs_dinode grew extra bits to support ext4Kenneth R Westerback
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.Kenneth R Westerback
2015-11-25Do not do the early pledge, because hotroot() is a lie. fsck_extfsTheo de Raadt
2015-11-23Cannot pledge() in the hotroot caseTheo de Raadt
2015-11-23Use pledge "disklabel" as needed. The theory here is these tools become moreTheo de Raadt
2015-10-15corrects pledge code for fsck_ffs and fsck_ext2fsSebastien Marie
2015-10-14Since the fsck_* programs now only handle one filesystem, this createsTheo de Raadt
2015-10-14Only accept one filesystem/device as argument for checking. Few peopleTheo de Raadt
2015-09-10avoid divide by zero; from Michael McConvilleTheo de Raadt
2015-09-05snprintf+write --> dprintfPhilip Guenther
2015-08-20<stdlib.h> is included, so do not need to cast result fromTheo de Raadt
2015-07-27document "F" in interactive mode, like for fsck.8;Jason McIntyre
2015-02-07When getopt processing flags, many should be flag=1 instead of flag++Theo de Raadt
2015-01-19remove #ifndef #define blocks trying to handle lack of BUFSIZTheo de Raadt
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-11-20remove sys/file.h includes in favor of fcntl.h where needed.Ted Unangst
2014-10-29remove ugly return value castsTheo de Raadt
2014-10-08trivial use of reallocarrayTheo de Raadt
2014-07-13kill fs2hXX/h2fsXX macros with letohXX/htoleXXMartin Pelikan
2014-07-13new superblock header needs fixesMartin Pelikan
2014-07-11Prevent division by zero on erroneous file systems.Tobias Stoeckmann
2014-07-11fix dacl->size_hi header changeMartin Pelikan
2014-05-24Use consistent format specifiers (%lld) and casts (long long) whenKenneth R Westerback
2014-05-24Don't potentially use stack garbage for e2d_type. InitializeKenneth R Westerback
2014-05-22Nuke pointless dev_bsize variable which is always set to 512, and justKenneth R Westerback
2014-05-21Nuke some trailing whitespace to shrink subsequent diffs.Kenneth R Westerback
2014-05-20As suggested by guenther@ and millert@, replace seek+[read|write] withKenneth R Westerback
2013-11-22Kirk was being waaaay too chummy with the compiler when he trustedPhilip Guenther
2013-04-25big int_t/time_t fixes; ok deraadt@ krw@Otto Moerbeek
2013-04-24pretty print bigger off_tTheo de Raadt
2013-04-17ext2fs has a 32-bit time fields. store a u_int32_t of the real time_t --Theo de Raadt
2011-04-18Remove a header file that is only supposed to be used by the kernel.Theo de Raadt
2011-03-12These utilities can currently only operate with a 32-bit block number range,Theo de Raadt
2010-08-12Print the real device name followed by the disklabel UID in parenthesisJoel Sing
2010-05-18dont let sys/ioctl.h imply that you get the ioctls in dkio.h. thisDavid Gwynne
2010-03-08if ncg == 1, there's no alternate superblock; from NetBSD; ok deraadt@Otto Moerbeek
2010-01-10remove references to docs we no longer install;Jason McIntyre
2009-12-10do not leak memory, found by parfait, ok millert ottoTheo de Raadt
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29Updated disklabel format to support larger disks and partitions. WeOtto Moerbeek
2006-04-20solve some signal races; from fsck_ffs; ok pedroTheo de Raadt
2006-04-02use SEEK_* for lseek()Theo de Raadt
2006-03-30when asking y or n, accept "F" which forces yes from the on. i haveTheo de Raadt
2006-03-20NetBSD Coverity CID 2298: Fix memory leak.David Hill