1 >From 297ec720cf512a6b5045c962bfb8a2f134ac77b0 Mon Sep 17 00:00:00 2001
2 From: Marco van Wieringen <mvw@planets.elm.net>
3 Date: Sun, 6 Sep 2009 18:06:48 +0200
4 Subject: [PATCH] This patch should fix bug #1366
7 bacula/src/filed/restore.c | 11 ++++++++++-
8 1 files changed, 10 insertions(+), 1 deletions(-)
10 diff --git a/bacula/src/filed/restore.c b/bacula/src/filed/restore.c
11 index 4400e14..cbb0889 100644
12 --- a/bacula/src/filed/restore.c
13 +++ b/bacula/src/filed/restore.c
14 @@ -367,7 +367,6 @@ void do_restore(JCR *jcr)
17 case CF_CREATED: /* File created, but there is no content */
20 print_ls_output(jcr, attr);
22 @@ -377,7 +376,17 @@ void do_restore(JCR *jcr)
23 if (attr->type == FT_REG && rsrc_len > 0) {
28 + * Count the resource forks not as regular files being restored.
30 + if (rsrc_len == 0) {
38 /* set attributes now because file will not be extracted */