commit:     4bc5a844fd340a3bd9b842678702fa6abf1b6b18
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  6 14:12:05 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Oct  6 14:12:05 2015 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=4bc5a844

fileops: fix passing of gid/uid/minimal args

This func accepted these kwargs but forgot to pass them along to the
snakeoil layer.

 catalyst/fileops.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/catalyst/fileops.py b/catalyst/fileops.py
index 8a05985..5a1d0f3 100644
--- a/catalyst/fileops.py
+++ b/catalyst/fileops.py
@@ -42,7 +42,7 @@ def ensure_dirs(path, gid=-1, uid=-1, mode=0o755, 
minimal=True,
        :return: True if the directory could be created/ensured to have those
                permissions, False if not.
        '''
-       succeeded = snakeoil_ensure_dirs(path, gid=-1, uid=-1, mode=mode, 
minimal=True)
+       succeeded = snakeoil_ensure_dirs(path, gid=gid, uid=uid, mode=mode, 
minimal=minimal)
        if not succeeded:
                if failback:
                        failback()

Reply via email to