summaryrefslogtreecommitdiffstats
path: root/sbin/savecore/savecore.c
AgeCommit message (Expand)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-5/+5
2019-02-05dev_t is signed to permit passing -1 as an invalid condition, but thederaadt1-2/+2
2018-12-05Unbreak "savecore -c". Also add missing unveil(2) for the raw device.yasuoka1-15/+24
2018-09-28add missing unveil(2) of an arbitrary kernel (when -N is used), or _PATH_UNIX bymestre1-1/+5
2018-09-24After opening required descriptors, savecore only plays in one directoryderaadt1-1/+5
2016-09-01make the version symbol a fixed size (512) to reduce the potential fortedu1-3/+5
2016-07-04Drop support for the undocumented second argument (same as -N option)guenther1-4/+2
2015-10-18after kmem is open and setup, pledge "stdio rpath wpath cpath"deraadt1-1/+6
2015-10-18Collapse some strange programmer style with too much abstraction.deraadt1-47/+31
2015-04-26Fix glitches in previous commit: strip the \n and only complain on failureguenther1-4/+11
2015-04-18Convert many atoi() calls to strtonum(), adding range checks and failurederaadt1-6/+15
2015-03-15tzfile.h is an internal header that should never have been installed.millert1-3/+3
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt1-7/+9
2013-06-03dependent clause requires a subject (comment grammar)tedu1-8/+8
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt1-15/+1
2009-06-20If the user didn't specify a kernel, pass in NULL to kvm_openfiles()millert1-4/+3
2009-01-17Use different variables for the dump offset in blocks and the dump offsetmiod1-13/+14
2009-01-02Handle kernel core files larger than 2GB; ok dlg@miod1-7/+8
2007-09-14remove some warnings:chl1-4/+2
2007-09-11use strcspn to properly overwrite '\n' in fgets returned buffergilles1-8/+5
2005-01-07Use fstatfs(), not statfs() to determine free space so if /var/crashmillert1-3/+5
2004-09-15removed unused; avoid aliasing to libc functionsderaadt1-24/+13
2004-07-02Use "time_second" instead of "time" now that time handling in the kerneltholo1-4/+4
2004-01-13Use correct type for magic number.otto1-4/+5
2003-12-28zap bizarre log() prototype.espie1-3/+2
2003-11-15fix savecore on big endian 64 bit arches. OK millert@marc1-3/+3
2003-07-29spacesderaadt1-4/+4
2003-06-10boring cleanupsderaadt1-4/+4
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert1-7/+3
2003-04-08fix null deref in error sysloggingmickey1-3/+3
2003-04-07strlcat, and it counted srclen, not dstlen; ok millertderaadt1-4/+5
2002-07-03ansideraadt1-31/+18
2002-05-22oops, backwards length check; moritz@jodeit.orgderaadt1-3/+3
2002-05-22strcpy, sprintf death; mpech okderaadt1-5/+6
2002-02-16Part 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.millert1-18/+18
2001-11-05kill more registers;mpech1-11/+11
2001-07-07major -Wall cleanup, almost completederaadt1-12/+12
2001-06-20circumvent a 32-bit integer arithmetic overflowniklas1-3/+3
2001-06-04return from main() don't exitmickey1-6/+6
2001-01-18crank "K to go" field to 8 digits; lukem@netbsd.orgderaadt1-3/+3
2000-10-25various savecore/kvm fixes; gluk@ptci.ru, PR#1461deraadt1-4/+6
2000-09-18avoid alias against libc symbol dirname (binutils is so great)deraadt1-10/+10
2000-05-31Cleaner loop structure when reading panic string from the core image.millert1-10/+12
1999-08-16add a missing strerror. (there was already a %s in the format string)art1-3/+3
1999-07-01extra fclose(); ronald@chersonese.comderaadt1-3/+2
1999-02-23do not print multiple \n in kernel version number printout,deraadt1-5/+24
1998-10-04increase data sizemillert1-2/+12
1998-09-24Back out gzip changes, they will not make 2.4millert1-14/+1
1998-09-05We can now savecore with a gzipped kernel:millert1-1/+14
1998-08-10fix usage() string; use __prognamemickey1-2/+4