diff options
author | dean gaudet <dean@arctic.org> | 2009-01-24 15:34:13 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@brick.lst.de> | 2009-01-24 15:34:13 +0100 |
commit | d6a276bd586fd0d8d986d9d6a240aff2bc09e6d0 (patch) | |
tree | 441637a0b4114bfefa213839396d4f176425c851 | |
parent | 116ac9f29b9daa1a83e7d2620205102434304c1c (diff) | |
download | xfsdump-dev-d6a276bd586fd0d8d986d9d6a240aff2bc09e6d0.tar.gz |
correct CIH_DUMPATTR_SUBTREE setting
subtreep is freed and set to 0 a few lines before the test for setting
CIH_DUMPATTR_SUBTREE, which means it never gets set. Check for subtreecnt
instead. Note that this flag is unused by xfsrestore so all this is rather
harmless.
Reviewed-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | dump/content.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dump/content.c b/dump/content.c index 7e0229e6..5d6e7512 100644 --- a/dump/content.c +++ b/dump/content.c @@ -1493,7 +1493,7 @@ baseuuidbypass: scwhdrtemplatep->cih_dumpattr = CIH_DUMPATTR_INOMAP | CIH_DUMPATTR_DIRDUMP; - if ( subtreep ) { + if ( subtreecnt ) { scwhdrtemplatep->cih_dumpattr |= CIH_DUMPATTR_SUBTREE; } if ( sc_inv_updatepr ) { |