nss-pam-ldapd branch master updated. 0.9.0-9-gee7b2e9
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd branch master updated. 0.9.0-9-gee7b2e9
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd branch master updated. 0.9.0-9-gee7b2e9
- Date: Mon, 20 May 2013 18:52:08 +0200 (CEST)
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 ee7b2e93082d436008204b2e670bb944531cf714 (commit)
via b6f50476524e9effb624c1c7c76a98615169241e (commit)
from 97d35f32806b54160767269da9a538b1cebd23db (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=ee7b2e93082d436008204b2e670bb944531cf714
commit ee7b2e93082d436008204b2e670bb944531cf714
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Mon May 20 17:18:46 2013 +0200
Add an explicit cast to int in lookup_shadow
diff --git a/tests/lookup_shadow.c b/tests/lookup_shadow.c
index 5c96108..3655806 100644
--- a/tests/lookup_shadow.c
+++ b/tests/lookup_shadow.c
@@ -41,7 +41,7 @@ static void print_shadow(struct spwd *result)
{
printf("%s:%s:", result->sp_namp, result->sp_pwdp);
if (result->sp_lstchg >= 0)
- printf("%d", result->sp_lstchg);
+ printf("%d", (int)result->sp_lstchg);
printf(":");
if (result->sp_min >= 0)
printf("%d", (int)result->sp_min);
http://arthurdejong.org/git/nss-pam-ldapd/commit/?id=b6f50476524e9effb624c1c7c76a98615169241e
commit b6f50476524e9effb624c1c7c76a98615169241e
Author: Arthur de Jong <arthur@arthurdejong.org>
Date: Sun Apr 14 00:22:54 2013 +0200
Make tests for system call failures a little more robustly
diff --git a/nslcd/nscd.c b/nslcd/nscd.c
index c03cae4..da58c2e 100644
--- a/nslcd/nscd.c
+++ b/nslcd/nscd.c
@@ -178,7 +178,7 @@ int nscd_start_invalidator(void)
pid_t cpid;
int i;
/* set up a pipe for communication */
- if (pipe(pipefds) == -1)
+ if (pipe(pipefds) < 0)
{
log_log(LOG_ERR, "pipe() failed: %s", strerror(errno));
return -1;
@@ -201,7 +201,7 @@ int nscd_start_invalidator(void)
}
/* fork a child to perfrom the nscd invalidate commands */
cpid = fork();
- if (cpid == -1)
+ if (cpid < 0)
{
log_log(LOG_ERR, "fork() failed: %s", strerror(errno));
close(pipefds[0]);
-----------------------------------------------------------------------
Summary of changes:
nslcd/nscd.c | 4 ++--
tests/lookup_shadow.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
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/
- nss-pam-ldapd branch master updated. 0.9.0-9-gee7b2e9,
Commits of the nss-pam-ldapd project