#ifndef lint
static const char rcsid[] =
- "$Id: restore.c,v 1.8 2000/05/28 16:52:21 stelian Exp $";
+ "$Id: restore.c,v 1.10 2000/08/20 15:17:36 stelian Exp $";
#endif /* not lint */
#include <sys/types.h>
long
addfile(char *name, ino_t ino, int type)
{
- register struct entry *ep;
+ register struct entry *ep, *np;
long descend = hflag ? GOOD : FAIL;
char buf[100];
return (descend);
}
type |= LINK;
+ for (np = ep->e_links; np; np = np->e_links)
+ if (strcmp(name, myname(np)) == 0) {
+ np->e_flags |= NEW;
+ return (descend);
+ }
}
ep = addentry(name, ino, type);
if (type == NODE)
if (compare_ignore_not_found) break;
fprintf(stderr, "%s: (inode %lu) not found on tape\n",
name, (unsigned long)ino);
+ compare_errors = 1;
break;
/*