4.3 Tahoe rrestore bug
Tait Cyrus
cyrus at pprg.unm.edu
Mon Nov 21 08:32:05 AEST 1988
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 at pprg.unm.edu
| / | /
@/_________@/
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list