aboutsummaryrefslogtreecommitdiffstats
path: root/restore
diff options
context:
space:
mode:
authorBill Kendall <wkendall@sgi.com>2012-01-06 14:51:56 -0600
committerChristoph Hellwig <hch@lst.de>2012-02-05 13:57:40 +0000
commit33817733496f46a1113de229c30bfd46de3baba7 (patch)
tree65b71b0d97c23d936bc51adbd25b2d7013af3294 /restore
parentc9788d928d7e46c67aa99be3e4cd7ded9cf381db (diff)
downloadxfsdump-dev-33817733496f46a1113de229c30bfd46de3baba7.tar.gz
xfsdump: fix restore of ext attrs on root directory
xfsrestore fails to restore extended attributes on the root directory because Node2path(), which returns a pathname relative to the restore root, returns an empty string instead of ".". Signed-off-by: Bill Kendall <wkendall@sgi.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'restore')
-rw-r--r--restore/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/restore/tree.c b/restore/tree.c
index 9e4e83ce..05e06281 100644
--- a/restore/tree.c
+++ b/restore/tree.c
@@ -3414,7 +3414,7 @@ static bool_t
Node2path( nh_t nh, char *path, char *errmsg )
{
intgen_t remainingcnt;
- path[ 0 ] = 0; /* in case root node passed in */
+ strcpy(path, "."); /* in case root node passed in */
remainingcnt = Node2path_recurse( nh, path, MAXPATHLEN, 0 );
if ( remainingcnt <= 0 ) {
node_t *np = Node_map( nh );