lists.arthurdejong.org
RSS feed

nss-pam-ldapd branch master updated. 0.9.1-13-g8b169f1

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd branch master updated. 0.9.1-13-g8b169f1



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "nss-pam-ldapd".

The branch, master has been updated
       via  8b169f1cd50f86b3c414522f5876696b1a9e95c6 (commit)
      from  560e5de575720c13d9085fe1014cb0377c9ccd12 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=8b169f1cd50f86b3c414522f5876696b1a9e95c6

commit 8b169f1cd50f86b3c414522f5876696b1a9e95c6
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Mon Sep 2 23:42:24 2013 +0200

    Fix permissions of test configuration
    
    This sets the permissions on the nslcd-test.conf file while running the
    tests to ensure that the permission checks for the bindpwn and
    rootpwmodpw options do not fail the test.

diff --git a/tests/test_common.c b/tests/test_common.c
index 29c899a..054a7a9 100644
--- a/tests/test_common.c
+++ b/tests/test_common.c
@@ -24,6 +24,7 @@
 
 #include <stdio.h>
 #include <assert.h>
+#include <sys/stat.h>
 
 #include "nslcd/common.h"
 #include "nslcd/cfg.h"
@@ -54,6 +55,9 @@ int main(int UNUSED(argc), char UNUSED(*argv[]))
     srcdir = ".";
   snprintf(fname, sizeof(fname), "%s/nslcd-test.conf", srcdir);
   fname[sizeof(fname) - 1] = '\0';
+  /* ensure that file is not world readable for configuration parsing to
+     succeed */
+  (void)chmod(fname, (mode_t)0660);
   /* initialize configuration */
   cfg_init(fname);
   /* partially initialize logging */

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

Summary of changes:
 tests/test_common.c |    4 ++++
 1 file changed, 4 insertions(+)


hooks/post-receive
-- 
nss-pam-ldapd
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/