From 0ae81bc5d099404d07328f1c7120d11f49ad5957 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 28 Aug 2012 14:15:02 +0200 Subject: [PATCH] Do not try to strip RestoreObject during attribute encoding --- bacula/src/filed/backup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index 3a42799eb9..da9330feff 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -1352,7 +1352,7 @@ bool encode_and_send_attributes(JCR *jcr, FF_PKT *ff_pkt, int &data_stream) * For a directory, link is the same as fname, but with trailing * slash. For a linked file, link is the link. */ - if (ff_pkt->type != FT_DELETED) { /* already stripped */ + if (!IS_FT_OBJECT(ff_pkt->type) && ff_pkt->type != FT_DELETED) { /* already stripped */ strip_path(ff_pkt); } switch (ff_pkt->type) { @@ -1414,7 +1414,8 @@ bool encode_and_send_attributes(JCR *jcr, FF_PKT *ff_pkt, int &data_stream) attribsEx, 0, ff_pkt->delta_seq, 0); break; } - if (ff_pkt->type != FT_DELETED) { + + if (!IS_FT_OBJECT(ff_pkt->type) && ff_pkt->type != FT_DELETED) { unstrip_path(ff_pkt); } -- 2.39.5