X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2Frestore.c;h=7197a3dd5f311885dfaf4dbf99ee53d55c17377f;hb=d6967896bc4e18f9b4359a2ef5be5c0f1bcc456a;hp=c5770849b4eaf01c85806fe6892914c91837429f;hpb=3d78f5f2dbe4f24a0c80f286e67ce79e9ef377c4;p=dump.git diff --git a/restore/restore.c b/restore/restore.c index c577084..7197a3d 100644 --- a/restore/restore.c +++ b/restore/restore.c @@ -2,7 +2,8 @@ * Ported to Linux's Second Extended File System as part of the * dump and restore backup suit * Remy Card , 1994-1997 - * Stelian Pop , 1999-2000 + * Stelian Pop , 1999-2000 + * Stelian Pop - AlcĂ´ve , 2000 */ /* @@ -40,9 +41,10 @@ #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.13 2000/12/21 11:14:54 stelian Exp $"; #endif /* not lint */ +#include #include #ifdef __linux__ @@ -89,7 +91,7 @@ listfile(char *name, ino_t ino, int type) 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]; @@ -114,6 +116,11 @@ addfile(char *name, ino_t ino, int type) 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) @@ -481,6 +488,7 @@ nodeupdates(char *name, ino_t ino, int type) if (compare_ignore_not_found) break; fprintf(stderr, "%s: (inode %lu) not found on tape\n", name, (unsigned long)ino); + compare_errors = 1; break; /*