summaryrefslogtreecommitdiff
path: root/sbin/restore
AgeCommit message (Collapse)Author
2008-09-03Start with a max size tape buffer rather than one 1/2 the max (i.e.Kenneth R Westerback
32K). This allows the automatic recognition of dumps written with 64K buffers. It also prevents alert scsi devices from complaining about read requests that provide only 1/2 the room needed for an actual tape record. Problem noted, fix tested & ok henning@
2007-09-25remove unneeded feofCharles Longeau
with help and ok ray@
2007-09-25check fgets return valueCharles Longeau
use sizeof input intead of BUFSIZ remove unneeded feof handle empty strings returned by fgets properly remove newline and white space at the end of buffer with help and ok ray@
2007-09-13use strcspn to properly overwrite '\n' in fgets returned bufferCharles Longeau
use strtonum instead of atoi prompted by ray@ ok moritz@ ray@
2007-09-07check fgets return valueCharles Longeau
use sizeof buf instead of TP_BSIZE use strcspn to properly overwrite '\n' in fgets returned buffer ok moritz@ ray@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-06-03Add ffs2 support to dump/restore. From FreeBSD with some NetBSD changes.Todd C. Miller
With help from otto@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-13g/c unused varsTodd C. Miller
2007-05-01for the restore -r example:Jason McIntyre
- use /dev/sd rather than /dev/rp, since rp no longer exists - use rst0 instead of rst8, since rst8 does not exist (by default) from Matthias Scheler ok otto
2007-02-25reword some text to avoid a hideous Xr;Jason McIntyre
2007-02-25one application does not need five synopses;Jason McIntyre
2007-02-25move the text describing 4.3 syntax compatibility to HISTORY, ratherJason McIntyre
than slap bang in SYNOPSIS;
2007-02-22igor sobrado spotted that although we have mlinks for rdump andJason McIntyre
rrestore, the pages they point to don;t actually mention them. so make it clear that their functionality is now integral in dump and restore, and sync the text a little between the two pages; help/ok otto
2006-11-03correctify example;Jason McIntyre
from a mail posted to misc@ from uwe dippel; ok otto
2006-10-18do not name FILE * variables "fd" since it is confusingTheo de Raadt
2006-03-20NetBSD Coverity CID 2305: Fix memory leak.David Hill
ok deraadt@
2005-11-15More typos (especially indicies -> indices), checked with jmc@Miod Vallat
2005-09-06document `what' from interactive mode: from ely petty;Jason McIntyre
kill an unneeded .Pp whilst here;
2005-06-16whiteout bit I missed earlierTodd C. Miller
2005-06-14Kill whiteout support. OK deraadt@ and beck@Todd C. Miller
2005-04-28Use strlcpy() not snprintf(). OK otto@ and moritz@Todd C. Miller
2004-12-30Replace home-grown byte swapping routine with calls to swap* macrosTodd C. Miller
from endian.h. Header swapping is moved into its own function. Fixes problems reading non-native endian dump images on sparc64. Adapted from changes in NetBSD.
2004-07-17some ansi; khalek@linuxgamers.netTheo de Raadt
2004-04-13fix restore so that it can actually restore files larger than 4GB byHenning Brauer
changing the type of "size" to off_t in getfiles() plus little dependent type cleanup, from Daniel Lucq <daniel@lucq.org> ok tdeval@ millert@ otto@
2004-03-31dumped is really spelled with one p and not twoHenning Brauer
from Daniel Lucq
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-08-25rename struct dinode to ufs1_dinode. clears the namespace and makesTed Unangst
way for some future work. no function changes yet. help testing otto@ and markus@
2003-07-29spacesTheo de Raadt
2003-07-28rcsid should say openbsd. make 'em const while here.Ted Unangst
2003-07-10add missing includesDavid Krause
ok deraadt@ millert@ tedu@
2003-07-07Repair last commit, the NUL termination of locname is requiredTodd C. Miller
for the strlcat() to work since the buffer gets used for each entry in a directory.
2003-07-06convert strn{cpy,cat}->strl{cpy,cat} in directory processingAnil Madhavapeddy
comments and from krw@, tdeval@, tedu@
2003-06-19Strip the newline from the buffer when reading the tape name duringTodd C. Miller
tape change. Closes PR 3324; OK krw@
2003-06-03- section reorderJason McIntyre
- some mdoc fixes
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-26string cleanup; ok teduTheo de Raadt
2003-04-06strcat->strlcat, ho@ okAnil Madhavapeddy
2003-04-04simple string fixes; ok matthieu tedu tdevalTheo de Raadt
2003-03-13more strlcpy; most from Hans-Joerg.Hoexer@yerbouti.franken.de, a bit from meTheo de Raadt
2003-03-11files with dead .Xr's;Jason McIntyre
left .Xr, but removed man page number as suggested by mpech@ more help and ok millert@
2003-03-06.Xr typos;Jason McIntyre
ok deraadt@
2002-08-12Swap args to calloc(3) so they are in the correct order; art@ ok.Aaron Campbell
2002-05-29more strlcatTheo de Raadt
2002-02-23getc() returns an intTheo de Raadt
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-17Manual cleanup of remaining userland __P use (excluding packages maintained ↵Todd C. Miller
outside the tree)
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-11Initial patch.Mike Pechkin
When you give command examples in a manual page prefix them with $ command or # command deraadt@ ok
2001-11-05kill more registers;Mike Pechkin
millert@ ok