Path: 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 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 | / | / @/_________@/