pwrap: Add log message for directory cleanup
authorAndreas Schneider <asn@samba.org>
Fri, 18 Dec 2015 09:26:14 +0000 (10:26 +0100)
committerAndreas Schneider <asn@samba.org>
Fri, 8 Jan 2016 12:06:41 +0000 (13:06 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
src/pam_wrapper.c

index 662b8b1e4a6c0ba76c2298aaeb5fddd9d86526b8..c78fc71483192f07e91af78cf5672901fa6fb5ba 100644 (file)
@@ -729,6 +729,9 @@ static void pwrap_clean_stale_dirs(const char *dir)
 
                rc = kill(pid, 0);
                if (rc == -1) {
+                       PWRAP_LOG(PWRAP_LOG_TRACE,
+                                 "Remove stale pam_wrapper dir: %s",
+                                 dir);
                        p_rmdirs(dir);
                }
        }