From 0c78942bcf1ab271d7202a7abb20e43317c391be Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Sat, 20 Aug 2005 21:00:47 +0000 Subject: [PATCH] Fix toc file to not include extended attributes information. --- CHANGES | 5 ++++- dump/tape.c | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 2a51705..dbc42d5 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.279 2005/07/07 09:16:03 stelian Exp $ +$Id: CHANGES,v 1.280 2005/08/20 21:00:47 stelian Exp $ Changes between versions 0.4b40 and 0.4b41 (released ???????????) ================================================================= @@ -16,6 +16,9 @@ Changes between versions 0.4b40 and 0.4b41 (released ???????????) accessible by the '-H' option of restore, and disable it by default. +5. Fixed dump to not include extended attributes information + in the toc (archive) file which confused restore -t. + Changes between versions 0.4b39 and 0.4b40 (released May 2, 2005) ================================================================= diff --git a/dump/tape.c b/dump/tape.c index 89f630d..ebee4d8 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.88 2005/03/02 08:46:55 stelian Exp $"; + "$Id: tape.c,v 1.89 2005/08/20 21:00:48 stelian Exp $"; #endif /* not lint */ #include @@ -246,7 +246,7 @@ writerec(const void *dp, int isspcl) /* Need to write it to the archive file */ if (! AfileActive && isspcl && (spcl.c_type == TS_END)) AfileActive = 1; - if (AfileActive && Afile >= 0) { + if (AfileActive && Afile >= 0 && !(spcl.c_flags & DR_EXTATTRIBUTES)) { /* When we dump an inode which is not a directory, * it means we ended the archive contents */ if (isspcl && (spcl.c_type == TS_INODE) && -- 2.39.5