wiz
3d110d313a
Sort options in usage.
2004-10-24 17:01:07 +00:00
snj
24641424de
Kill trailing whitespace introduced in the last revision.
2004-10-23 00:41:08 +00:00
snj
e85784770d
Bump date for last, fix a spelling error, sprinkle some Dq, change
...
some wording.
2004-10-23 00:39:18 +00:00
bouyer
0a0bd752e8
Add an option (-M) to write a mtree specification (which needs to be passed
...
through sort before being feed to mtree) with file flags, instead of restoring
file flags at the same time as other attributes. Fix various issue with
schg, uchg, sappnd or uappnd flags which cause restore to fail in some case.
Discussed on tech-userlevel:
http://mail-index.netbsd.org/tech-userlevel/2004/10/12/0000.html
2004-10-22 22:38:38 +00:00
wiz
816f9f8757
Add -D to usage; shorten -b argument for usage's sake; format usage.
...
Man page nits.
2004-07-27 14:20:11 +00:00
enami
047e7ad434
Whitespace nits.
2004-07-27 02:20:56 +00:00
enami
5d75faa43f
Add -D flag which computes the digest of each regular files in the archive
...
using specified algorithm (currently md5, rmd160 or sha1) and write them
to standard output.
2004-07-27 02:17:06 +00:00
fvdl
0be1698412
Fix byteswapping a direntry. From Wolfgang Solfrank.
2003-11-05 22:27:16 +00:00
fvdl
9c9a4505fe
Don't use NULL as a case value.
2003-10-21 02:34:45 +00:00
agc
276d62f603
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
wiz
d6967e3b9b
Quote punctuation so it gets marked up.
2003-06-30 10:46:22 +00:00
lukem
9014bdbce6
* Document $RCMD_CMD in environ(7).
...
* Cross-reference rcmd(1), rcmd(3), and environ(7) as appropriate.
Should fix [bin/21670] from Geoff Wing.
2003-05-26 10:18:39 +00:00
fvdl
42614ed3f3
Add support for UFS2. UFS2 is an enhanced FFS, adding support for
...
64 bit block pointers, extended attribute storage, and a few
other things.
This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.
Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
taca
a89b208abd
Since "host" is used when RRESTORE is defined, enclose variable definition
...
with "#ifdef RRESTORE" and "#endif".
2003-03-27 14:11:51 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
perry
8a49ec08e4
"Utilize" has exactly the same meaning as "use," but it is more
...
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
wiz
b230951fd3
system with two ss, from Adrian Mrva.
2002-12-21 12:45:32 +00:00
enami
32d43b3252
Also, don't allocate string entries one by one. Instead, allocate one page
...
and divide it, to reduce memory usage.
2002-11-25 07:16:17 +00:00
enami
34f6f0d4dc
Typo in comment.
2002-11-18 04:38:43 +00:00
enami
89e4128421
Don't allocate struct entry one by one; it just wastes memory.
2002-11-18 04:28:03 +00:00
lukem
7360d7b6ae
Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
2002-08-19 10:16:51 +00:00
itojun
dbf388bc4f
calloc() arg mistake. it's (nelem, size). from openbsd
2002-08-12 02:40:20 +00:00
wiz
c632c8bea4
__STDC__ is always defined on NetBSD.
2002-05-25 23:45:12 +00:00
simonb
1d08e313ae
Don't bother testing if a uint8_t is > 256 -- that test is always false.
2002-05-09 02:55:49 +00:00
perseant
9aca526666
Don't forget to update curfile, if tape begins with TS_ADDR type block.
...
In particular, this means that if one member (say the last member) of a tape
set begins with continuation blocks, restore will not consider that tape
to contain all the inodes (curfile.ino==0 at the beginning of the tape).
Close PR #15545 .
2002-02-19 19:16:38 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
lukem
2b8424b54a
oops; another minor fix from rev 1.34 noticed by Simon Gerraty
2002-01-04 06:48:49 +00:00
lukem
f3017fa83a
fix compile issues now that on-tape times are int32_t instead of time_t
2001-12-23 14:40:42 +00:00
wiz
ed5ba510c2
One '\' too many.
2001-12-07 19:50:20 +00:00
wiz
d80de2cabd
Sort sections, use .Ic for a non-NetBSD program instead of .Xr.
2001-11-16 12:07:43 +00:00
lukem
5b5d0d23b8
oops, remove temporary comment
2001-11-01 08:21:57 +00:00
lukem
7f675a25b7
fix -Wshadow warnings
2001-11-01 08:21:07 +00:00
lukem
3a17632dfb
remove arg name in prototype decl
2001-11-01 08:18:01 +00:00
wiz
4c99916337
va_{start,end} audit:
...
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
wiz
251b3464be
heirarchy -> hierarchy
2001-08-24 10:24:45 +00:00
wiz
3f9984fc90
`existent', not `existant'
2001-06-19 13:42:07 +00:00
wiz
73f545bb5b
Drop arguments of .Os.
2001-06-05 11:22:41 +00:00
cgd
8a986b2e96
convert to use getprogname()
2001-02-19 22:48:57 +00:00
christos
93292f2f1a
revert previous change; not needed.
2001-02-04 21:38:34 +00:00
christos
abc5ad9724
fix nested extern
2001-02-04 21:38:01 +00:00
enami
cdf90f8e31
Remove incorrect advice for lint; the control may return from panic().
2001-01-24 23:14:04 +00:00
enami
2efd21a284
If possible, detect more case that file is missing on the tape.
...
XXX we still may lose if a file of highest inode number requested
XXX to extract was missing or one of multiple dump tape is lost.
2001-01-18 08:59:23 +00:00
is
9979da6cbb
Format string cleanups by Bill Sommerfeld.
2000-10-10 20:24:49 +00:00
enami
bc7d39c732
Extract file flags of symbolic link.
2000-07-07 13:24:33 +00:00
enami
9974e53bda
Force -t or -N flag disables -u flag (but -t case is just for sanity).
2000-06-09 09:05:02 +00:00
enami
ec2aebedf3
Make sure that sentences end at the end of source line for better
...
formatted output.
2000-05-23 04:35:32 +00:00
enami
ab4e6574a4
Add comment and sanity check about why we need not to skip remaining
...
blocks if we are reading inode bitmaps.
2000-05-23 02:27:33 +00:00
enami
8532100ee5
Correctly extract the inode maps bigger than 512 tape blocks.
2000-05-19 09:22:55 +00:00
sommerfeld
aace28c12e
Fix PR9282: restore doesn't print dump header on dumps from host with
...
unset hostname.
2000-01-27 15:25:00 +00:00
enami
7b962c3e98
Keep SEE ALSO list in alphabetical order.
1999-11-19 01:47:13 +00:00
enami
f4642e590c
Use .Ar macro for the files to be extracted.
1999-11-19 01:38:54 +00:00
enami
82d7115cf2
Don't pass so many args to .Nd macro. It just overflows.
1999-11-19 01:12:39 +00:00
drochner
85cbf55d16
Since our gcc doesn't warn about NULL format strings anymore, we can
...
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
abs
125cb421d5
Note the default tape device is taken from _PATH_DEFTAPE in /usr/include/paths.h
1999-07-01 19:18:47 +00:00
abs
f6e78dac05
Default device is nrst0 not rst0
1999-06-28 01:32:49 +00:00
erh
4a3cd0cce2
Make quoted strings work. (don't set the high bit of each character)
1999-02-09 08:55:24 +00:00
lukem
75ea7b3f7e
user friendly enhancments.
...
reworked from [bin/6710] by Brian Grayson <bgrayson@ece.utexas.edu>
1999-01-03 01:50:34 +00:00
msaitoh
a17cee9f2c
fix a small bug.
1998-07-27 19:19:45 +00:00
christos
eb5a542716
Add an unlink (-u) flag so that we can use this for installs.
1998-06-24 19:56:11 +00:00
enami
06a7912b58
Don't actually set attributes of directory if -N flag is given.
1998-05-12 00:42:48 +00:00
fair
3d7afc6d03
fix bad .Xr references
1998-04-29 09:49:10 +00:00
kleink
d3989dbe02
Need <time.h> for ctime() prototype.
1998-04-01 16:21:47 +00:00
mrg
35297f04fc
use static int, not just static
1998-03-30 02:13:35 +00:00
bouyer
d1c8f32096
Update for new headers.
1998-03-18 17:18:21 +00:00
enami
e3c03cb969
Document some undocumented options (-d and -N) and commands
...
in interactive mode (?, xit and Debug).
1998-01-10 08:27:54 +00:00
enami
ae49269de7
Fix a typo; s/Complaints/Complains/ (pointed by Mike Long).
1998-01-10 08:21:58 +00:00
enami
eee2902993
Fix the bug introduced in last change; pass IFCHR or IFBLK bit to
...
mknod(2) via mode.
1997-12-13 22:22:53 +00:00
enami
a722a42f3d
Use file mode 0600 when creating special file or fifo.
...
Suggested by Charles M. Hannum.
1997-11-18 03:08:21 +00:00
enami
076c3b6f00
Restore file attributes after extracting regular file. Fixes PR#4515
...
from stephen.ma@jtec.com.au:
- call getfile() before altering file attributes.
- open file with mode 0600 instead of 0666 so that file won't remain
group or world readable/writable even if getfile() terminated.
- also, move skipfile() before altering file attributes in IF{CHR,BLK} and
IFIFO case for symmetry (suggested by Charles M. Hannum).
1997-11-18 02:56:35 +00:00
mrg
9f84449ae5
add missing .Nm sections.
1997-11-11 14:39:59 +00:00
enami
0d4522a03f
Fix .Nm usage.
1997-10-20 09:11:16 +00:00
mycroft
f19fd07b85
Use futimes(2). Do {f,}utimes(2) *before* {f,}chflags(2), for obvious
...
reasons.
1997-10-19 13:29:22 +00:00
christos
e230a48b57
CFLAGS->CPPFLAGS
1997-10-10 19:47:50 +00:00
enami
062c3f563a
Restore owner/group/mode/atime/mtime of symbolic links.
1997-10-08 22:51:27 +00:00
lukem
7120b2eafb
resolve conflicts from lite-2 merge
1997-09-16 13:44:12 +00:00
mrg
52ff5d8fee
make these compile on the alpha after WARNS=1.
1997-09-16 08:37:01 +00:00
lukem
8b03c7fc43
* cleanup for WARNS=1
...
* fix use of .Nm
1997-09-15 08:04:28 +00:00
lukem
7da56091ad
as inspired by a commit message of Todd Miller <millert@cvs.openbsd.org>:
...
* cleanup a bit for -Wall
* use __progname instead of "restore"
1997-07-06 08:51:28 +00:00
pk
67c9126d92
NULL => 0 (from Arne Juul; addendum to PR#3237)
1997-07-04 21:48:39 +00:00
lukem
a260da3f8b
Support using $TMPDIR for rst{dir,modes}* files, so that large
...
restores can be done on machines with small /tmp's by setting TMPDIR
elsewhere. This shouldn't be a security issue as restore(8) isn't
set?id anymore.
1997-07-01 05:37:49 +00:00
lukem
ca651d6946
There's no need to install restore(8) setgid tty.
1997-06-30 09:47:27 +00:00
lukem
b45dc84835
Fix problem with duplicate entries when changing from LEAF to NODE;
...
only the first link of a inode was being removed, not all of them.
From Kirk McKusick <mckusick@McKusick.COM> via thorpej
1997-06-18 07:10:16 +00:00
lukem
a9fe880b0c
explicitly \0 terminate locname[] in treescan(). should fix [bin/2093]
1997-06-03 04:27:49 +00:00
mrg
4925873939
remove the setuid bit.
1997-05-27 08:45:52 +00:00
pk
0c19f22e3f
* NULL => 0 (Arne Juul; PR#3629)
...
* Nuke spacoids
1997-05-17 19:38:12 +00:00
gwr
10e180cc49
Back out the .PATH.c changes. The .depend problem (and others)
...
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr
012e528f2e
Use .PATH.c: ...
1997-05-06 20:44:56 +00:00
lukem
ceb1313a6a
use _PATH_DEFTAPE from <paths.h> instead of "pathnames.h"
...
cleanup references/examples to use /dev/rst* instead of /dev/rmt*
minor .Nm usage cleanup in man page
1997-04-15 07:12:19 +00:00
lukem
8c5cee237e
* use mkstemp() instead of mktemp()
...
* remove "register" qualifiers
1997-03-19 08:42:51 +00:00
cjs
ea04966433
Fix typo: PR bin/3059
1996-12-26 17:35:35 +00:00
mikel
aff1970d41
remove mkfs(8) xref; PR 3041
1996-12-24 02:32:25 +00:00
mycroft
728e20590f
Make sure to byte-swap all of the relevant fields; especially c_flags.
1996-12-04 03:54:04 +00:00
cgd
bcaa5b7b1c
When initializing 'fssize,' the size of the data buffer to be used when
...
writing data to the file system, if the "optimal" file system I/O
operation block size is less than TP_BSIZE, leave fssize alone (i.e.
at its default setting of MAXBSIZE). This was causing restore's
stack to be trashed, because the end-of-buffer checking/flushing code
around line 680 would never notice that the buffer was full (because
it'd be comparing a buffer segment index, which would always be >= 1, to
fssize / TP_BSIZE, which could be zero in that case), and would keep
filling and filling and filling...
1996-11-30 18:31:29 +00:00
cgd
a0c5caa042
patches from Tom I Helbekkmo <tih@nhh.no> to deal with type-size issues,
...
so this works (better, at least) on 64-bit machines (e.g. alpha).
1996-11-30 18:01:52 +00:00
lukem
9ab7d8e652
use unique temporary files for all operations except 'r' and 'R', which still
...
base temp files on dumpdate. explain why in the man page. fixes [bin/2870]
1996-10-24 04:01:10 +00:00
thorpej
5d6afee55f
Use snprintf() rather than sprintf().
1996-09-27 03:23:33 +00:00
thorpej
6c2fa7eac7
Back out last change (and re-open PR); the patch is incomplete, and
...
I realized it _just_ as CVS checked the file back in.
1996-09-27 03:15:00 +00:00
thorpej
f864e10c5f
Make unique temporary file names.
...
From Luke Mewburn <lukem@supp.cpr.itg.telecom.com.au>, PR #2544 .
1996-09-27 03:07:05 +00:00
scottr
ef8a0d774c
Be more paranoid with our effective uid.
1996-03-15 22:39:26 +00:00
mrg
aa6f27003a
support $TAPE.
1996-02-06 00:00:22 +00:00