[SCM] pam wrapper repository - branch master updated

Andreas Schneider asn at samba.org
Mon May 15 15:23:40 UTC 2017


The branch, master has been updated
       via  7d45bbb Bump version to 1.0.4
       via  c6bb9df pwrap: Do not leak srcfd on error
      from  80f27a3 pam_wrapper: Fix the build without pam_vsyslog

https://git.samba.org/?p=pam_wrapper.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 7d45bbb5c308e322901e90642b4dcf0a4bee200f
Author: Andreas Schneider <asn at samba.org>
Date:   Mon May 15 16:37:44 2017 +0200

    Bump version to 1.0.4
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Kai Blin <kai at samba.org>

commit c6bb9dfe74c51621587cc92c496fcde4721e6a6b
Author: Andreas Schneider <asn at samba.org>
Date:   Tue Apr 11 08:39:44 2017 +0200

    pwrap: Do not leak srcfd on error
    
    Signed-off-by: Andreas Schneider <asn at samba.org>
    Reviewed-by: Kai Blin <kai at samba.org>

-----------------------------------------------------------------------

Summary of changes:
 CMakeLists.txt    | 2 +-
 ChangeLog         | 4 ++++
 src/pam_wrapper.c | 3 ++-
 3 files changed, 7 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a929eb2..f03a137 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@ set(APPLICATION_NAME ${PROJECT_NAME})
 
 set(APPLICATION_VERSION_MAJOR "1")
 set(APPLICATION_VERSION_MINOR "0")
-set(APPLICATION_VERSION_PATCH "3")
+set(APPLICATION_VERSION_PATCH "4")
 
 set(APPLICATION_VERSION "${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}.${APPLICATION_VERSION_PATCH}")
 
diff --git a/ChangeLog b/ChangeLog
index c2be509..8440261 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
 ChangeLog
 ==========
 
+version 1.0.4 (released 2017-05-15)
+  * Fix build on OpenBSD
+  * Fix a resource leak
+
 version 1.0.3 (released 2017-04-06)
   * Fixed some build issues with strict compiler flags
   * Logging to syslog is disabled by default
diff --git a/src/pam_wrapper.c b/src/pam_wrapper.c
index 889c79a..4be8146 100644
--- a/src/pam_wrapper.c
+++ b/src/pam_wrapper.c
@@ -553,7 +553,8 @@ static int p_copy(const char *src, const char *dst, const char *pdir, mode_t mod
 	if (mode == 0) {
 		rc = fstat(srcfd, &sb);
 		if (rc != 0) {
-			return -1;
+			rc = -1;
+			goto out;
 		}
 		mode = sb.st_mode;
 	}


-- 
pam wrapper repository



More information about the samba-cvs mailing list