diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-07-17 21:59:51 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-07-26 14:14:33 +0200 |
commit | d2e2e400e79c94c2e60f21ec61811dfe948924cc (patch) | |
tree | 5b9c551d07702c9163668e88c67d7ff149aac1d7 | |
parent | 5b785086084122074dea451850aa87e2d7594c77 (diff) |
Fix nscd cache flushing bug in pynslcd
The pynslcd implementation would always clear the passwd nscd cache
regardless of the provided map.
-rw-r--r-- | pynslcd/nscd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pynslcd/nscd.py b/pynslcd/nscd.py index e71bd04..acee9a9 100644 --- a/pynslcd/nscd.py +++ b/pynslcd/nscd.py @@ -42,7 +42,7 @@ _char_to_db = dict((reversed(item) for item in _db_to_char.items())) def exec_invalidate(db): logging.debug('nscd_invalidator: nscd -i %s', db) try: - p = subprocess.Popen(['nscd', '-i', 'passwd'], + p = subprocess.Popen(['nscd', '-i', db], bufsize=4096, close_fds=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) output, ignored = p.communicate() |