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-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f0f0d3605a1f42ef8d7098ffe29db5b8f92a2763;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 {