summaryrefslogtreecommitdiff
path: root/sbin/fsck_ext2fs/utilities.c
AgeCommit message (Collapse)Author
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
ok miod@ millert@
2019-02-06Replace overlapping memcpy() with memmove() in getpathname().Todd C. Miller
Same fix as in fsck_ffs. OK deraadt@ tb@
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.Kenneth R Westerback
Feedback millert@ kettenis@
2015-09-05snprintf+write --> dprintfPhilip Guenther
ok deraadt@
2015-08-20<stdlib.h> is included, so do not need to cast result fromTheo de Raadt
malloc, calloc, realloc* ok krw millert
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2014-07-13kill fs2hXX/h2fsXX macros with letohXX/htoleXXMartin Pelikan
The reason being that ext2 structures are little-endian but JBD2 journal is big-endian. Don't confuse readers by talking about "file system endian". ok guenther
2014-05-24Use consistent format specifiers (%lld) and casts (long long) whenKenneth R Westerback
printing out block numbers and sector numbers. Make output verbiage consistent. -Wall happier. Original diff and ok chl@
2014-05-22Nuke pointless dev_bsize variable which is always set to 512, and justKenneth R Westerback
use DEV_BSIZE. Write sizes need to be secsize and not DEV_BSIZE, just like reads. Equivalent to changes made in fsck_ffs.
2014-05-20As suggested by guenther@ and millert@, replace seek+[read|write] withKenneth R Westerback
p[read|write]. Makes the code much clearer by eliminating extra error checking and verbiage. No intentional functional change. Tweaks by and ok guenther@
2011-03-12These utilities can currently only operate with a 32-bit block number range,Theo de Raadt
so use daddr32_t ok jasper
2009-12-10do not leak memory, found by parfait, ok millert ottoTheo de Raadt
(one case was a false positive, but one is a modified copy of the other)
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
wished for this for 10+ year, but always forgotten to make the change after cleaning up a nasty file system; ok pedro millert
2003-06-11ansificationTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-17strings. mostly from deraadt@, some from tdeval@ and myselfTed Unangst
2002-02-23getc() returns an intTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-09-18cleanups and endianness fixes. Mostly from NetBSDArtur Grabowski
2001-01-31KNF; tomo@ns1.infinitedata.netTheo de Raadt
2001-01-19mark signal races i cannot fix at the momentTheo de Raadt
2000-09-30Some format string problems that were missed during initial audit; deraadt@ andAaron Campbell
millert@ ok
2000-04-26Support for ext2fs rev. 1jasoni
1997-06-25(foo *)0 -> NULLkstailey
1997-06-14Add tags, fix man page. Purely cosmetic.Jason Downs
1997-06-14Sync with NetBSD. Purely cosmetic.Jason Downs
1997-05-30Initial import of Manuel's fsck_ext2fs, unmodified.Jason Downs