obrien
c404d987fa
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
obrien
9baf2f1b03
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
iedowse
aea807046e
Zap a number of #ifdef sunos blocks, and all of the `register'
...
keywords.
2001-11-17 00:06:55 +00:00
iedowse
46b1ffa3a1
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
dillon
41f4e0eb17
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
dillon
315406dcf8
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
ru
d4d77d0e3c
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
ru
29e117e978
Don't reinvent the wheel; use strptime(3).
...
MFC after: 2 weeks
2001-09-04 16:17:17 +00:00
kris
add729e840
Mark some functions as __printflike()
...
MFC After: 1 week
2001-08-10 23:12:10 +00:00
dd
f07b174fb3
Sort options in DESCRIPTION.
2001-07-15 14:00:19 +00:00
dd
3e93a911a8
Bump date for addition of -D.
2001-07-15 13:57:06 +00:00
dd
a145482cf6
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
ru
7cef49ff86
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 11:04:34 +00:00
ru
362186b66e
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
dillon
2f52ad74cd
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
dillon
fb991ec59e
Oops, forgot to add 'D' to the option morphing block.
2001-07-08 19:48:37 +00:00
dillon
2b51f516c8
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
mikeh
1219a35719
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
dd
0a67a9b12c
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
jkh
c0ad0e9671
Fix bogon with the nodump flag.
...
Submitted by: Dima Dorfman <dima@unixfreak.org>
2001-04-19 01:39:27 +00:00
obrien
4d6d792fb5
Remove two lint directives that aren't needed since rev 1.5.
2001-03-30 16:51:51 +00:00
obrien
51ca15c2dc
Make rev 1.5 better match the rest of dump(8)'s output.
2001-03-27 19:38:34 +00:00
obrien
c9c6dd1eff
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
ru
86642a4ab4
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:33:27 +00:00
ru
56b5d7535b
Set the default manual section for sbin/ to 8.
2001-03-20 18:13:31 +00:00
obrien
81365aaa67
bye-bye documented raw devices
2001-03-09 13:06:53 +00:00
obrien
84709752a1
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
obrien
0de7162258
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
phk
77061a115d
Use <sys/queue.h> instead of home-rolled list.
...
Submitted by: "Jason Smethers" <jsmethers@pdq.net>
2001-01-29 09:45:51 +00:00
phk
2b8bb59303
Use \a instead of \007 for making noise.
...
Submitted by: "Jason Smethers" <jsmethers@pdq.net>
2001-01-28 21:21:37 +00:00
ru
7fe8bd2b88
Prepare for mdoc(7)NG.
2000-12-18 15:16:24 +00:00
ru
ea31070695
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 16:52:27 +00:00
ru
a6f5d950d8
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
kris
07e195cda0
Update device name.
2000-05-07 09:27:53 +00:00
imp
7fec3d2787
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
bc42f462b1
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
sheldonh
ff1f324516
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
fc60a09c33
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
markm
1bcfc94e36
Use libcrypto instead of libdes.
2000-02-24 21:01:54 +00:00
mpp
0835d95d39
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
phantom
007e0ea746
Add `.Nm rdump' to NAME section.
2000-01-10 12:18:10 +00:00
imp
50a13e9fb7
vsprintf -> vsnprintf in msg().
1999-11-10 18:11:16 +00:00
markm
3b6f8bb130
Prepare for K5.
1999-09-20 06:21:51 +00:00
markm
a90c53c266
Fix for new KerberosFix for new Kerberos44
1999-09-19 22:14:33 +00:00
peter
76f0c923fe
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
billf
36ab0ae51e
Fix nested if/else within an if
1999-07-08 22:27:00 +00:00
jkh
86be82fb5b
Fix time of last dump handling.
...
Submittted by: Richard Wiwatowski <rjwiwat@ozemail.com.au>
1999-07-02 04:44:43 +00:00
jmz
62b04b83d2
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
mjacob
c1677f05fc
temporary workaround for bin/11464
1999-05-03 13:53:16 +00:00
jkh
fe1a4eb34f
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