From: Eric Bollengier Date: Mon, 16 Jul 2012 19:51:23 +0000 (+0200) Subject: Fix #4513 about HIDDEN attribute set to parent directory during restore X-Git-Tag: Release-7.0.0~98 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=913724d725042c1f5056c9b0fa98f25f99ae3d20;p=bacula%2Fbacula Fix #4513 about HIDDEN attribute set to parent directory during restore --- 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 {