summaryrefslogtreecommitdiffstats
path: root/sbin/savecore
Commit message (Collapse)AuthorAgeFilesLines
* Pickup _time_second instead of _timephk1998-03-301-2/+2
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Fix my yesterday's brain-o: don't account for the kilobytes twice.joerg1996-10-141-1/+1
|
* Yikes! Originally, i intended to apply the patch from PR # 1322,joerg1996-10-131-5/+6
| | | | | | | | | | | | | but Bill has beaten me on this. ;-) However, he missed the part to compute the kernelsize in kilobytes, so the minfree consideration was now overcautious. (I've also changed the return type of dump_size() to void since int was useless.) Being here, the fact that `vmcore' was written world-readable was just a plain security hole: everybody who was able to crash a kernel could later read any confidential information out of it at his will. Create it with umask 077 instead.
* Make the savecore command work like the man page says:fenner1996-10-132-10/+21
| | | | | | | | | | | | | - make minfree work by getting the dump size before checking to see if the dump will fit on the filesystem - also fail to dump if no minfree is specified but there are not enough free blocks. Fix a typo in the man page. Fixes PR bin/1322 Submitted by: "Philippe C." <charnier@lirmm.fr>
* Cast the partial result of an expression to an off_t to fix an overflowdg1996-09-051-1/+1
| | | | | | in the calculation of free disk space. Fixes PR#1569. Submitted by: Tor Egge <Tor.Egge@idt.ntnu.no>
* a header file for zopen.3wosch1996-08-202-1/+5
| | | | Pointed out by: Philippe Charnier <charnier@lirmm.fr>
* NBPG -> getpagesize()phk1996-05-021-1/+1
|
* Add #include <vm/pmap.h> in order to make savecore compile again after thepeter1995-12-131-0/+1
| | | | last round of <vm/*.h> include file changes.
* Delete bogus referneces to timezone code internal header file `tzfile.h',wollman1995-08-071-2/+1
| | | | which is no longer bogusly installed in /usr/include.
* Remove a newline from the output of savecore(8), so the bogus numberjoerg1995-07-301-1/+0
| | | | | | | | | 1024 that used to remain on a line of its own after savecore completed its job will be overwritten later in the /etc/rc process. Reviewed by: Submitted by: graichen@sirius.physik.fu-berlin.de (Thomas Graichen) Obtained from:
* Remove a bogus fclose. Normally the "w" stream for /var/crash/bounds wasbde1995-07-111-1/+0
| | | | | | fclosed twice and this didn't seem to cause any problems, but when /var/crash was on an an unwritable nfs-mounted partition, fclose(NULL) caused a core dump.
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* The -N option takes one argument, hence the getopt control stringjoerg1995-01-021-1/+1
| | | | | needs to have a colon for it. Looks like nobody has tested this so far.
* Get rid of _PATH_UNIX completely; use getbootfile(3) instead.wollman1994-09-242-21/+19
| | | | | | | DANGER WILL ROBINSON! _PATH_UNIX is currently defined as the literal string "don't use this". I am of two minds about this myself, but wanted to get something into the tree as quickly as possible.
* Converted 'vmunix' to 'kernel'.dg1994-08-052-22/+22
|
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-1/+1
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* I know better than to edit files on freefall, next time take a patch file.rgrimes1994-05-281-1/+1
| | | | Change vm_paramh. to vm_param.h
* Must now include vm/vm.h and vm/vm_param.h due to the way we define KERNBASE.rgrimes1994-05-281-0/+3
| | | | Reviewed by: David Greenman
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-263-0/+781
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud