summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2012-01-20 16:18:54 +0000
committerArthur de Jong <arthur@arthurdejong.org>2012-01-20 16:18:54 +0000
commitb18031b39fed025b4252a9b026a53517c5cca868 (patch)
treedfb5c6fc9027a7950c1e5d97a9c63a0a57f82adf
parentc858d6d82af9cf3be3be929e3c8a9d995c2cc9fd (diff)
clarify error messages and fix typo in comment
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1605 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--nslcd/nslcd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nslcd/nslcd.c b/nslcd/nslcd.c
index 871d294..3674b36 100644
--- a/nslcd/nslcd.c
+++ b/nslcd/nslcd.c
@@ -324,7 +324,7 @@ static int create_socket(const char *filename)
/* close the file descriptor on exit */
if (fcntl(sock,F_SETFD,FD_CLOEXEC)<0)
{
- log_log(LOG_ERR,"fctnl(F_SETFL,FD_CLOEXEC) failed: %s",strerror(errno));
+ log_log(LOG_ERR,"fctnl(F_SETFL,FD_CLOEXEC) on %s failed: %s",filename,strerror(errno));
if (close(sock))
log_log(LOG_WARNING,"problem closing socket: %s",strerror(errno));
exit(EXIT_FAILURE);
@@ -336,7 +336,7 @@ static int create_socket(const char *filename)
http://lkml.org/lkml/2005/5/16/11 */
if (chmod(filename,(mode_t)0666))
{
- log_log(LOG_ERR,"chmod(0666) failed: %s",strerror(errno));
+ log_log(LOG_ERR,"chmod(0666) of %s failed: %s",filename,strerror(errno));
if (close(sock))
log_log(LOG_WARNING,"problem closing socket: %s",strerror(errno));
exit(EXIT_FAILURE);
@@ -600,7 +600,7 @@ static void *worker(void UNUSED(*arg))
log_log(LOG_WARNING,"problem closing socket: %s",strerror(errno));
continue;
}
- /* indicate new connection to logging module (genrates unique id) */
+ /* indicate new connection to logging module (generates unique id) */
log_newsession();
/* handle the connection */
handleconnection(csock,session);