From 2c54e5b68e3f7ba81ff1271e6dd9daa30ee1c10f Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Tue, 9 Sep 2014 18:33:51 +0100 Subject: [PATCH] [plugintools] preserve permissions on directories containing links --- sos/plugintools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sos/plugintools.py b/sos/plugintools.py index 250f724..11ffc47 100644 --- a/sos/plugintools.py +++ b/sos/plugintools.py @@ -223,7 +223,7 @@ class PluginBase: # make sure the dst dir exists if not (os.path.exists(os.path.dirname(dstslname)) and os.path.isdir(os.path.dirname(dstslname))): - os.makedirs(os.path.dirname(dstslname)) + self.__copydirs(os.path.dirname(srcpath), self.cInfo['dstroot']) self.soslog.debug("creating symlink %s -> %s" % (dstslname, rpth)) -- 1.9.3