Commit Graph

28 Commits

Author SHA1 Message Date
yamt
41d3da5939 save/restore errno in signal handlers. 2002-08-18 08:03:35 +00:00
itojun
2abe377059 defend against malicious line in ut_line, which could cause unwanted
writes to anything under /dev.  revoke setuid/gid privs earlier.
From: xs@kittenz.org
2002-08-16 20:21:48 +00:00
christos
8e5a0987a4 support utmpx 2002-08-02 02:07:09 +00:00
lukem
8975510a51 Fixes from FreeBSD:
- Fix error if first tape was write protected.  Fix NetBSD PRs 4754 and 6098.
- Make dump exit codes confirm to manual page.
- Use \a instead of \7 to make noise.
- Fix estimated number of tapes for huge dumps to cartridges.
- Use <sys/queue.h> SLIST_* instead of home-rolled lists.
- Do not exit if unable to read or create /etc/dumpdates.
- Support output (tape) device returning ENOSPC for end-of-media on a write.

Fixes by me:
- Remove unused ddates_in.
- Don't dump core if SIGINFO is received before 1 second has elapsed.
- Only process SIGINFO in current "active" child.
- Don't dump core in -w if dumpdates wasn't readable and ddatev == NULL
- Minor KNF; wrap some lines
2001-12-25 12:06:26 +00:00
lukem
1c9f606d2a For dump_lfs(8), in getfstab(), only "lfs" (instead of "ufs" or "ffs").
Fix from Minoura Makoto in [bin/10525].
2001-12-24 03:02:34 +00:00
lukem
b734f790f5 nuke trailing whitespace 2001-12-23 12:29:55 +00:00
lukem
4720d32cfe - use correct type for minTime in findlru() (size_t instead of int)
- clean up whitespace
2001-12-22 08:05:24 +00:00
lukem
4c4307e3ce fix -Wshadow warnings 2001-11-01 08:03:03 +00:00
lukem
ca2a1a8c3b in msg(), don't call va_list using functions twice in a row without calling
va_start() in between; reorder code so that we call vsnprintf and then
just fputs that buffer. crank the size of lastmsg whilst we're here
problem noted by Hideo Saito in [bin/14348].
2001-10-25 08:04:27 +00:00
blymn
a152a6a92a Add the capability for dump to print timestamps on all informational
messages.
2001-10-15 13:25:33 +00:00
david
a84be23c10 Patch to drop setgid tty privs until forking for operator notification 2001-08-08 16:49:54 +00:00
lukem
9af1692ef1 * improve parsing of file-systems-to-dump when a path is given:
- if it's a path to an unmounted file-system listed in /etc/fstab, use
	that instead of assuming the user wanted a subtree dump of the parent
	directory. this restores the behaviour of dump before the subtree
	dumping code went in.
      - if it's a path to a mounted file-system which is not in /etc/fstab,
	use the info from getmntinfo(3). previously, dump would choke.
* implement error checked malloc(), calloc(), strdup(), and use
  appropriately (some of the calloc()s weren't being checked)
* use 'file-system' instead of 'filesystem' in the man page
2001-05-28 01:09:54 +00:00
lukem
cc5935ebba unifdef !__STDC__ (missed in previous) 2001-05-28 00:41:14 +00:00
lukem
99feaf5b29 knf to ansi 2001-05-27 14:17:56 +00:00
is
9979da6cbb Format string cleanups by Bill Sommerfeld. 2000-10-10 20:24:49 +00:00
kleink
0cadc2826a Need <time.h> for time(), localtime() and ctime() prototypes. 1998-04-01 16:15:40 +00:00
lukem
a84bab531d * cleanup for WARNS=1
* fix use of .Nm
* comment out some unused(?) functions
1997-09-15 07:58:01 +00:00
mrg
0631d904fa fix off by one bug. 1997-05-27 08:34:36 +00:00
thorpej
d35d1cc20f Don't need to account for space for NUL, as it's included in the
sizeof(_PATH_DEV), noted by Chris Demetriou <cgd@netbsd.org>
1997-04-21 21:08:33 +00:00
thorpej
5ebe7c7be3 Add missing `-', noted by Erik Fair <fair@cesium.clock.org> on
current-users.
1997-04-21 21:05:07 +00:00
mrg
d655665117 be safe with buffers. 1997-04-21 11:31:15 +00:00
lukem
93da79de2b remove use of "register". 1997-04-15 01:09:49 +00:00
lukem
578deb45c4 Implement changes from [bin/1915]
* 'w' and 'W' display the year
* verbosity additions displaying total & per-volume transfer times and rates
1997-04-10 05:36:23 +00:00
perry
5714664cf5 fix pr 2977 -- only try to dump ufs/ffs partitions 1997-01-16 22:00:30 +00:00
jtk
71b374789d Adjust the base for time estimates to ignore time we spent waiting
for operator input.
enhancements from PR #900
1996-05-18 16:16:17 +00:00
cgd
0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
mycroft
ccfa3742b5 Update from 4.4-Lite, with local changes. 1994-06-08 18:57:30 +00:00
cgd
108d89475f new version from CSRG, via BSDI, with fixes 1993-12-22 10:19:31 +00:00