From f0f0d3605a1f42ef8d7098ffe29db5b8f92a2763 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 16 Jul 2012 21:51:23 +0200 Subject: [PATCH] Fix #4513 about HIDDEN attribute set to parent directory during restore --- bacula/src/findlib/mkpath.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bacula/src/findlib/mkpath.c b/bacula/src/findlib/mkpath.c index 884ba10083..985fdd84b0 100644 --- a/bacula/src/findlib/mkpath.c +++ b/bacula/src/findlib/mkpath.c @@ -285,6 +285,10 @@ bool makepath(ATTR *attr, const char *apath, mode_t mode, mode_t parent_mode, /* Now set the proper owner and modes */ #if defined(HAVE_WIN32) + + /* Don't propagate the hidden attribute to parent directories */ + parent_mode &= ~S_ISVTX; + if (path[1] == ':') { p = &path[3]; } else { -- 2.39.2