From 4a9a33ef6c2f09149c5ab3f89e42572ef38801e1 Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Thu, 17 Apr 2008 15:16:47 +0000 Subject: [PATCH] Fix "mode file too large" errors when restoring huge backups. --- CHANGES | 6 +++++- restore/dirs.c | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 00b92f5..6292674 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.286 2007/02/22 20:16:23 stelian Exp $ +$Id: CHANGES,v 1.287 2008/04/17 15:16:47 stelian Exp $ Changes between versions 0.4b41 and 0.4b42 (released xxxxxxxxxxxxxxx) ===================================================================== @@ -20,6 +20,10 @@ Changes between versions 0.4b41 and 0.4b42 (released xxxxxxxxxxxxxxx) 4. Fix EA set failures when restoring immutable files. Thanks to Andrew Kroeger for the patch. +5. Fix "mode file too large" errors when restoring huge backups. + Thanks to Kenneth Porter for the bug + report. + Changes between versions 0.4b40 and 0.4b41 (released January 2, 2006) ===================================================================== diff --git a/restore/dirs.c b/restore/dirs.c index 509d35f..2717f94 100644 --- a/restore/dirs.c +++ b/restore/dirs.c @@ -42,7 +42,7 @@ #ifndef lint static const char rcsid[] = - "$Id: dirs.c,v 1.34 2007/02/22 20:16:23 stelian Exp $"; + "$Id: dirs.c,v 1.35 2008/04/17 15:16:47 stelian Exp $"; #endif /* not lint */ #include @@ -673,7 +673,7 @@ setdirmodes(int flags) fprintf(stderr, "directory mode, owner, and times not set\n"); return; } - mf = fopen(modefile, "r"); + mf = FOPEN(modefile, "r"); if (mf == NULL) { warn("fopen"); fprintf(stderr, "cannot open mode file %s\n", modefile); @@ -747,7 +747,7 @@ comparedirmodes(void) fprintf(stderr, "directory mode, owner, and times not set\n"); return; } - mf = fopen(modefile, "r"); + mf = FOPEN(modefile, "r"); if (mf == NULL) { warn("fopen"); fprintf(stderr, "cannot open mode file %s\n", modefile); -- 2.39.5