Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-05-28 | Don't pledge before opendev() and ioctl DIOCGDINFO were called. | Theo Buehler | |
Avoids a pledge crash with 'ncheck_ffs /dev/tty'. deraadt agrees | |||
2016-03-30 | for some time now mandoc has not required MLINKS to function | Jason McIntyre | |
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung | |||
2015-11-23 | Use pledge "disklabel" as needed. The theory here is these tools become more | Theo de Raadt | |
resistant against memory correctup, if a corrupt filesystem is given to them. ok krw | |||
2015-11-23 | ncheck_ffs may be invoked more simply as ncheck, | Jason McIntyre | |
so add an entry to NAME and document it; ok schwarze | |||
2015-10-11 | Pledge that ncheck_ffs only uses "stdio" after opening the device. | Doug Hogan | |
ok deraadt@ | |||
2015-02-07 | When getopt processing flags, many should be flag=1 instead of flag++ | Theo de Raadt | |
ok tedu miod | |||
2015-01-20 | Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or | Theo de Raadt | |
delete <sys/param.h> if now possible ok guenther | |||
2015-01-16 | Replace <sys/param.h> with <limits.h> and other less dirty headers where | Theo 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-10-09 | fairly obvious reallocarray() conversion, where the size is recalculated | Theo de Raadt | |
only on success. | |||
2014-07-09 | Oops. Forgot makefile ... | Kenneth R Westerback | |
Enable specifying the filesystem of interest by the duid. Original diff from halex@ a while ago. ok halex@ jsing@ (with comments for future tweaking) | |||
2014-07-09 | Enable specifying the filesystem of interest by the duid. | Kenneth R Westerback | |
Original diff from halex@ a while ago. ok halex@ jsing@ (with comments for future tweaking) | |||
2014-05-27 | Where trying to pread() a single disk sector, the i/o must be for the | Kenneth R Westerback | |
actual disk sector size and not DEV_BSIZE. The sector size must be obtained via the disklabel. Larger i/o's must be multiple sectors, so when retrying with a smaller size shrink the attempt by one sector and not DEV_BSIZE. Of course if your d_secsize is DEV_BSIZE, this will all be a no-op. This does not make non-512-byte sectors work, but puts in place the logic to get and use the disklabel info. Which makes the next diffs bite sized and focused. ok guenther@ | |||
2014-05-24 | Nuke last of the illusionary 'dev_bsize' and 'dev_bshift' variables in | Kenneth R Westerback | |
favour of DEV_BSIZE. No-op on 512-byte sector devices. | |||
2014-05-22 | Nuke some trailing whitespace to shrink subsequent diffs. | Kenneth R Westerback | |
2014-05-20 | As suggested by guenther@ and millert@, replace seek+[read|write] with | Kenneth 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@ | |||
2014-05-13 | Since this is limited to ffs, use ufsinfo_t instead of ino_t. | Philip Guenther | |
Grow the array of cached inodes exponentially instead of arithmetically. Prefer sizeof(*pointer) over sizeof(type) in mallocs. Don't leak memory in searchdir(). Fix multiple bugs in the handling of indirect blocks, including reuse of a static buffer in a recursive function and failure to track the remaining size of the directory blocks to process Tested with a directory *doubly* indirect block! ok krw@ | |||
2014-05-11 | replace realloc(p, N * M) with reallocarray(p, N, M) and remove some | Alexander Hall | |
pointless cleanup if we're obviously going to die anyway ok guenther@ | |||
2014-05-11 | struct direct's d_ino is no longer the same size as an ino_t, so copy it | Philip Guenther | |
for the call to bsearch() problem report and ok krw@ | |||
2013-11-01 | Sprinkle (long long) casts where %lld is being used to print daddr_t | Kenneth R Westerback | |
variables. Some random whitespace/knf repairs encountered on the way. ok miod@ on inspection, feedback & more suggestions from millert@ | |||
2013-07-16 | Add missing .Mt macros for AUTHORS email addresses. | Ingo Schwarze | |
From Jan Stary <hans at stare dot cz>. ok jmc@ | |||
2013-06-11 | final removal of daddr64_t. daddr_t has been 64 bit for a long enough | Theo de Raadt | |
test period; i think 3 years ago the last bugs fell out. ok otto beck others | |||
2013-04-24 | pretty print bigger off_t | Theo de Raadt | |
ok tedu otto | |||
2009-10-28 | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | Theo de Raadt | |
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 | |||
2009-06-02 | snprintf returns int, not size_t. | Ray Lai | |
OK millert otto deraadt | |||
2007-08-06 | the ellipsis is not an optional argument; while here, sync the usage | Igor Sobrado | |
and synopsis of commands lots of good ideas by jmc@ ok jmc@ | |||
2007-07-09 | correct a typo in an error message. | Thordur I. Bjornsson | |
use realpath(3) to sanitize the path we're going to work with, prevents silly errors when passing ncheck_ffs paths from the shell with a trailing '/' since that doesnt match the entry in fstab. ok deraadt@,krw@ | |||
2007-06-29 | more daddr64_t changes; checked by otto | Theo de Raadt | |
2007-06-01 | ufs1_daddr_t cleanup, okay otto@ | Pedro Martelletto | |
2007-06-01 | convert ufs2_daddr_t -> daddr64_t for greater clarity; ok pedro otto thib | Theo de Raadt | |
2007-05-31 | convert to new .Dd format; | Jason McIntyre | |
2007-05-21 | Add ffs2 support; some parts adapted from ffs2 dump changes in FreeBSD. | Todd C. Miller | |
2007-03-19 | Add FFS2 fields to the superblock, change file system tools to keep | Pedro Martelletto | |
accessing FFS1 fields, okay art@, quite some testing by ckuethe@, simon@ and thib@, thanks. | |||
2006-04-02 | use SEEK_* for lseek() | Theo de Raadt | |
2005-11-12 | more asprintf; ok dhill@mindcry.org | Theo de Raadt | |
2005-04-12 | handle snprintf potential -1 case | Theo de Raadt | |
2004-08-08 | spacing | Theo de Raadt | |
2003-11-21 | - standard SYNOPSIS | Jason McIntyre | |
- sort OPTIONS - s/Dq/Sq when quoting single characters - sync usage() - simplify macros | |||
2003-09-25 | realloc fixes; 3rd rev to make markus happier | Theo de Raadt | |
2003-08-25 | rename struct dinode to ufs1_dinode. clears the namespace and makes | Ted Unangst | |
way for some future work. no function changes yet. help testing otto@ and markus@ | |||
2003-07-29 | spaces | Theo de Raadt | |
2003-06-11 | ansification | Theo de Raadt | |
2003-06-04 | term 3 & 4 from tholo after permission | Theo de Raadt | |
2003-06-03 | - section reorder | Jason McIntyre | |
- some mdoc fixes | |||
2003-03-06 | Make fsdb(8) a little easier to find with some cross references. | Hugh Graham | |
2003-02-07 | typos; | Jason McIntyre | |
2003-01-17 | Add a new option, -f, that allows the user to specify a custom output | Todd C. Miller | |
format. Currently only supports printing the inode number and path (along with any arbitrary text) but other escapes may be added later. A useful invocation is: ncheck -s -f '\P\0' | xargs -0 ls -ldgT deraadt@ OK | |||
2003-01-17 | Don't report setugid directories in "ncheck -s" output since those | Todd C. Miller | |
bits have no meaning on OpenBSD. deraadt@ OK | |||
2002-08-12 | Swap args to calloc(3) so they are in the correct order; art@ ok. | Aaron Campbell | |
2002-07-11 | malloc() failure tests; rimshot@pandora.be | Theo de Raadt | |
2002-07-03 | ansi | Theo de Raadt | |