Article View: comp.bugs.4bsd
Article #12544.3 Tahoe rrestore bug
From: Tait Cyrus
Date: Sun, 20 Nov 1988 22:32
Date: Sun, 20 Nov 1988 22:32
34 lines
1433 bytes
1433 bytes
I am trying to get the 4.3 Tahoe dump/restore/rmt stuff to run
uder SunOS 3.5. rdump seems to work fine, but rrestore does not.
In dirs.c around line 108 there is the code:
if (ip == NULL || (ip->di_mode & IFMT) != IFDIR) {
(void) fclose(df);
dirp = opendir(dirfile);
if (dirp == NULL)
perror("opendir");
if (mf != NULL)
(void) fclose(mf);
i = dirlookup(".");
Two problems I see here.
1) dirfile is NOT a directory but a file (created by rrestore)
2) If dirp == NULL, then in addtion to the perror call, exit
should also be called.
My question then is why is the code trying to open a directory that
does NOT exist.
Thanks for any help/suggestions/bug fixes etc...
---
@__________@ W. Tait Cyrus (505) 277-0806
/| /| University of New Mexico
/ | / | Dept of ECE - Parallel Processing Research Group
@__|_______@ | Albuquerque, New Mexico 87131
| | | |
| | hc | | e-mail:
| @.......|..@ cyrus@pprg.unm.edu
| / | /
@/_________@/
Technical Details
Message-ID:
<23669@pprg.unm.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!hc!pprg.unm.edu!cyrusShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!hc!pprg.unm.edu!cyrus From: cyrus@pprg.unm.edu (Tait Cyrus) Newsgroups: comp.bugs.4bsd Subject: 4.3 Tahoe rrestore bug Keywords: 4.3,tahoe,restore Message-ID: <23669@pprg.unm.edu> Date: 20 Nov 88 22:32:05 GMT Organization: U. of New Mexico, Albuquerque Lines: 34