]> git.pld-linux.org Git - packages/pam.git/commitdiff
- don't let pam_tally leak file descriptors
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 4 Mar 2008 16:52:48 +0000 (16:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pam-tally-fclose.patch -> 1.1

pam-tally-fclose.patch [new file with mode: 0644]

diff --git a/pam-tally-fclose.patch b/pam-tally-fclose.patch
new file mode 100644 (file)
index 0000000..548b2e5
--- /dev/null
@@ -0,0 +1,10 @@
+--- Linux-PAM-0.99.9.0/modules/pam_tally/pam_tally.c~  2008-03-04 17:33:09.000000000 +0100
++++ Linux-PAM-0.99.9.0/modules/pam_tally/pam_tally.c   2008-03-04 17:44:16.000000000 +0100
+@@ -504,6 +504,7 @@
+     i=get_tally(pamh, &tally, uid, opts->filename, &TALLY, fsp);
+     if ( i != PAM_SUCCESS ) { RETURN_ERROR( i ); }
++    fclose(TALLY);
+     if ( !(opts->ctrl & OPT_MAGIC_ROOT) || getuid() ) {       /* magic_root skips tally check */
This page took 0.162519 seconds and 4 git commands to generate.