Commit Graph

46 Commits

Author SHA1 Message Date
wiz c632c8bea4 __STDC__ is always defined on NetBSD. 2002-05-25 23:45:12 +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
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
enami cdf90f8e31 Remove incorrect advice for lint; the control may return from panic(). 2001-01-24 23:14:04 +00:00
enami bc7d39c732 Extract file flags of symbolic link. 2000-07-07 13:24:33 +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
lukem 75ea7b3f7e user friendly enhancments.
reworked from [bin/6710] by Brian Grayson <bgrayson@ece.utexas.edu>
1999-01-03 01:50:34 +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
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
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
mycroft f19fd07b85 Use futimes(2). Do {f,}utimes(2) *before* {f,}chflags(2), for obvious
reasons.
1997-10-19 13:29:22 +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
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
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
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
scottr ef8a0d774c Be more paranoid with our effective uid. 1996-03-15 22:39:26 +00:00
cgd dd12858b36 stat structure POSIXification 1995-06-19 00:20:11 +00:00
mycroft 5827156eb1 Back out previous change. 1995-06-11 05:28:52 +00:00
cgd 788733b7a9 typeof(timeval.tv_sec) != time_t 1995-06-07 17:14:21 +00:00
cgd 0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
mycroft d8b173be70 Use atexit() rather than tweaking every exit() to call the cleanup function. 1995-02-20 19:43:51 +00:00
mycroft 33ea52b638 Mostly sync with CSRG. 1994-12-28 02:21:43 +00:00
mycroft ea7b5d4ec6 Eliminate uses of some obsolete functions. 1994-09-23 14:26:58 +00:00
mycroft 10a6fcedbf Allow extracting FIFOs. 1994-09-18 05:11:03 +00:00
mycroft 625a6892f7 Update from 4.4-Lite, with local changes. 1994-06-08 19:27:32 +00:00
cgd 725ed31e82 copyright foo 1994-05-17 04:13:48 +00:00
cgd 76919077ef kill some #ifndefs 1994-04-25 18:33:12 +00:00
cgd 873973c399 just kill the cast completely 1994-04-02 01:50:23 +00:00
cgd 67f7468b24 bad cast 1994-04-01 03:32:38 +00:00
cgd 44fcfeed78 Check correct header when looking at tape number.
from thomas@mathematik.uni-Bremen.de
1994-03-01 00:16:15 +00:00
cgd 3e75cabcd4 new version from CSRG, via BSDI, with fixes 1993-12-22 10:31:38 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft 6e9066169f Fix message. 1993-04-20 10:05:22 +00:00
cgd fae5aad9fc restore didn't understand dirs which spanned more than one volume.
fixed by patch from Gene Stark (gene@stark.uucp).
1993-03-25 05:41:59 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00