summaryrefslogtreecommitdiff
path: root/sbin/restore
AgeCommit message (Collapse)Author
2015-12-10Remove NULL-checks before free(). ok tb@mmcc
2015-11-21add missing NAME entries; ok schwarzeJason McIntyre
2015-11-07Use linkat() instead of link() so that hardlinks of symlinks workPhilip Guenther
ok millert@
2015-08-25Switch from utimes() to utimensat() to $estore full nanosecond granularityPhilip Guenther
ok millert@ deraadt@
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orTheo de Raadt
delete <sys/param.h> if now possible ok guenther
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-11-26Prefer setvbuf() to setlinebuf() for portability; ok deraadt@Todd C. Miller
2014-09-07Reuse xtrfile() to avoid duplication.Philip Guenther
Casting from long to int for a size_t argument is dumb. Calling warnx() right before err() is silly. ok millert@
2014-09-03Mark msg() and panic() as printf-like and fix the format error it turns upPhilip Guenther
ok krw@
2014-07-21Switch from <sys/endian.h> or <machine/endian.h> to the new,Philip Guenther
being-standardized <endian.h> ok deraadt@ millert@ beck@
2014-07-20Make sure the correct errno is reported by warn* or err* and notPhilip Guenther
the errno of an intervening cleanup operation like close/unlink/etc. Diff from Doug Hogan (doug (at) acyclic.org)
2014-01-20Obvious .Xr fixes, found while testing mandocdb(8).Ingo Schwarze
2013-12-30Do not leak symtab fd (if at fd limit might even prevent correct operation)Theo de Raadt
from Loganaden Velvindron
2013-11-15Include unistd.h as it is the standard location for getopt().Todd C. Miller
2013-08-14no longer any need to quote macro lines with >9 args;Jason McIntyre
From: Jan Stary
2013-04-25big int_t/time_t fixes; ok deraadt@ krw@Otto Moerbeek
2013-04-24pretty print bigger off_tTheo de Raadt
ok tedu otto
2013-03-31typo fix from rodent@netbsd;Jason McIntyre
ok otto
2013-03-05add a few words to the -r description to avoid ambiguity;Jason McIntyre
issue noted by Ronald F. Guilmette, freebsd docs/176648
2013-01-17remove a uesless Pp;Jason McIntyre
2012-07-14replace (somewhat) magic numbers with constantsAlexander Hall
ok krw@
2011-12-23some spelling fixes, found using freebsd's "igor" document verifier;Jason McIntyre
2011-06-27remove some useless casts. ok krwTed Unangst
2010-07-20opration -> operationMiod Vallat
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
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@