David E. O'Brien
016298551c
Files in subdirectories of directories that have the nodump flag set
...
are sometimes incorrectly being dumped.
The problem arises because the subdirectory only gets its entry
cleared from usedinomap if it is also present in dumpinomap, and it is
the absence of a directory in usedinomap that internally indicates
that the directory is under the effects of UF_NODUMP (either directly
or inherited).
PR: 32414
Submitted by: David C Lawrence <tale@dd.org>
2001-12-05 20:42:52 +00:00
David E. O'Brien
2d68bf45bf
Default to WARNS=2.
...
Binary builds that cannot handle this must explicitly set WARNS=0.
Reviewed by: mike
2001-12-04 02:19:58 +00:00
Ian Dowse
d2334e27e9
Zap a number of #ifdef sunos blocks, and all of the `register'
...
keywords.
2001-11-17 00:06:55 +00:00
Ian Dowse
a50e99d137
Give a sensible error message when the filesystem to be dumped is
...
not listed in /etc/fstab. Previously, the user would be greeted
with "DUMP: bad sblock magic number" when dump tried to parse
the directory contents as an FFS filesystem.
PR: bin/12789
Submitted by: Bob Willcox <bob@pmr.com>
2001-11-16 22:13:44 +00:00
Matthew Dillon
5b3817c60b
Make the protocol/dumprestore.h header match restore's idea of the dump
...
header for the case where sizeof(time_t) != sizeof(int). dumprestore.h
was embedding time_t when it should have been embedding int32_t.
Use time_to_time32() and time32_to_time() to convert between the
protocoll/file-format time and time_t.
2001-10-28 20:01:38 +00:00
Matthew Dillon
788bbd2d61
deltat declared time_t, msg("") call used %d (assumed time_t == int).
...
Changed deltat to be an int (result of delta time calculation).
MFC after: 1 day
2001-10-28 06:13:47 +00:00
Ruslan Ermilov
4a315a9af3
SECURITY.
...
Notify operators using wall(1)'s -g option.
Drop ``setgid tty'' privilege.
Obtained from: OpenBSD
MFC after: 1 month
2001-09-05 15:37:01 +00:00
Ruslan Ermilov
d6669bbcc2
Don't reinvent the wheel; use strptime(3).
...
MFC after: 2 weeks
2001-09-04 16:17:17 +00:00
Kris Kennaway
eb1d91d1c9
Mark some functions as __printflike()
...
MFC After: 1 week
2001-08-10 23:12:10 +00:00
Dima Dorfman
03578dfec7
Sort options in DESCRIPTION.
2001-07-15 14:00:19 +00:00
Dima Dorfman
478810b578
Bump date for addition of -D.
2001-07-15 13:57:06 +00:00
Dima Dorfman
7ebcc426ef
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
Ruslan Ermilov
9fe48c6e8d
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 11:04:34 +00:00
Ruslan Ermilov
448087ae70
mdoc(7) police:
...
Restored .Pa for ``dumpdates'' (it's still a file).
Also, removed duplicate ``file'' words.
2001-07-10 09:34:55 +00:00
Matthew Dillon
988d64c256
Add manual page and usage for dump -D (supplied by Dima Dorfman) (will also
...
be MFC'd)
Submitted by: Dima Dorfman <dima@unixfreak.org>
2001-07-09 03:06:56 +00:00
Matthew Dillon
cedae1f478
Oops, forgot to add 'D' to the option morphing block.
2001-07-08 19:48:37 +00:00
Matthew Dillon
3860f7810d
Add a -D option to dump, allowing the path for the /etc/dumpdates file to be
...
changed, so independant entities backing up the same thing to different
media can be made not to trip over each other.
MFC after: 3 days
2001-07-08 19:45:20 +00:00
Mike Heffner
be1bf707c9
Convert two instances of a lseek()+read() combination to a pread().
...
PR: bin/17640
MFC after: 2 weeks
2001-07-01 04:46:20 +00:00
Dima Dorfman
33d3b9f878
Since we use getopt (in rev. 1.12), there's no need for the case's for
...
the individual options to increment argv and decrement argc. This
caused the -T option to swallow an extra argument.
PR: 27982
Submitted by: Samuel Greear <sgreear@vsni.com>
2001-06-09 04:32:46 +00:00
Jordan K. Hubbard
2c8094f344
Fix bogon with the nodump flag.
...
Submitted by: Dima Dorfman <dima@unixfreak.org>
2001-04-19 01:39:27 +00:00
David E. O'Brien
6cc546f248
Remove two lint directives that aren't needed since rev 1.5.
2001-03-30 16:51:51 +00:00
David E. O'Brien
b2f6bdeeaa
Make rev 1.5 better match the rest of dump(8)'s output.
2001-03-27 19:38:34 +00:00
David E. O'Brien
8cc6e4d84a
Do not exit if unable to read /etc/dumpdates or create it.
...
If one is trying to dump or repair an ill system, give the user a fighting
chance. Refusing to operate w/o a very non-critical file (feature) is
just plain stupid.
2001-03-27 19:28:00 +00:00
Ruslan Ermilov
0a5779d45b
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:33:27 +00:00
Ruslan Ermilov
fe655281c5
Set the default manual section for sbin/ to 8.
2001-03-20 18:13:31 +00:00
David E. O'Brien
ff7405adba
bye-bye documented raw devices
2001-03-09 13:06:53 +00:00
David E. O'Brien
8454c72c24
Move _PATH_DEFTAPE to <paths.h> to remove all the duplication of definitons,
...
and remove leading `r'(aw) from it.
2001-03-08 09:04:40 +00:00
David E. O'Brien
801382fa98
Support inheritance of the "nodump" flag down a hierarchy.
...
Submitted by: Dima Dorfman <dima@unixfreak.org>
Obtained from: NetBSD
2001-03-03 11:35:50 +00:00
Poul-Henning Kamp
941ee63274
Use <sys/queue.h> instead of home-rolled list.
...
Submitted by: "Jason Smethers" <jsmethers@pdq.net>
2001-01-29 09:45:51 +00:00
Poul-Henning Kamp
bfa0b2984d
Use \a instead of \007 for making noise.
...
Submitted by: "Jason Smethers" <jsmethers@pdq.net>
2001-01-28 21:21:37 +00:00
Ruslan Ermilov
1252c1bb05
Prepare for mdoc(7)NG.
2000-12-18 15:16:24 +00:00
Ruslan Ermilov
7c7fb079b9
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 16:52:27 +00:00
Ruslan Ermilov
726b61ab5f
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
Kris Kennaway
257875bed0
Update device name.
2000-05-07 09:27:53 +00:00
Warner Losh
37736675d1
Add include of errno.h where needed, remove extern int errno where not.
...
These commits were inspired by a similar commit to netbsd.
2000-04-14 06:15:01 +00:00
Joerg Wunsch
04285c0615
Avoid rawname() stupidly prepending an `r' before the device name even
...
in cases where the supplied name was already pointing to a character
special device. This fixes the breakage that occured when trying to
dump a filesystem by name (e. g. /usr), with an fstab already
mentioning the raw device name (like /dev/rda0g) where dump attempted
to use /dev/rrda0g then.
Also removed the now obsolete remark that fstab were carrying block
special names.
2000-04-02 10:16:40 +00:00
Sheldon Hearn
ef8f7ac935
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 11:27:47 +00:00
Nik Clayton
b1ba45cfe5
Remove xrefs to obsolete ft driver.
...
PR: docs/17080
Submitted by: Udo Erdelhoff <ue@nathan.ruhr.de>
2000-03-01 10:40:18 +00:00
Mark Murray
f499a39621
Use libcrypto instead of libdes.
2000-02-24 21:01:54 +00:00
Mike Pritchard
f050f700ad
Fix various man pages to stop abusing the .Bx macro to generate
...
the strings "FreeBSD" and "NetBSD". Use the .Fx or .Nx macro
instead.
2000-01-23 01:30:05 +00:00
Alexey Zelkin
07a48f4bcc
Add `.Nm rdump' to NAME section.
2000-01-10 12:18:10 +00:00
Warner Losh
a7d7b470ae
vsprintf -> vsnprintf in msg().
1999-11-10 18:11:16 +00:00
Mark Murray
1099209e99
Prepare for K5.
1999-09-20 06:21:51 +00:00
Mark Murray
105b74f110
Fix for new KerberosFix for new Kerberos44
1999-09-19 22:14:33 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Bill Fumerola
16c4e40827
Fix nested if/else within an if
1999-07-08 22:27:00 +00:00
Jordan K. Hubbard
a741b77965
Fix time of last dump handling.
...
Submittted by: Richard Wiwatowski <rjwiwat@ozemail.com.au>
1999-07-02 04:44:43 +00:00
Jean-Marc Zucconi
8878be20f8
Fix typo in dump reporting
...
PR: bin/10573
Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de>
1999-05-24 00:35:47 +00:00
Matt Jacob
9b979919c4
temporary workaround for bin/11464
1999-05-03 13:53:16 +00:00
Jordan K. Hubbard
f1a3bb13d8
The attached patch to /usr/src/sbin/dump/optr.c changes the comparison
...
so that dumps are treated by dump -w as having been done on midnight
of the day they were actually run. This makes dump -w behave as
expected for regularly scheduled daily dumps - if they all run the
same day. It makes dump -w behave strangely if you dump late in the
day and check again after midnight, but that is the lesser of two
evils.
Submitted by: Mike Meyer <mwm@phone.net>
PR: 9429
1999-03-21 23:47:38 +00:00