about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--nscd/selinux.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 14e00523bd..b9474b45cc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-03  Jakub Jelinek  <jakub@redhat.com>
+
+	* nscd/selinux.c (audit_init): Print error string in the failure
+	message.
+
 2006-02-21  Roland McGrath  <roland@redhat.com>
 
 	* sysdeps/unix/sysv/linux/kernel-features.h
diff --git a/nscd/selinux.c b/nscd/selinux.c
index f0ac3cdf9a..c59251f1b5 100644
--- a/nscd/selinux.c
+++ b/nscd/selinux.c
@@ -1,5 +1,5 @@
 /* SELinux access controls for nscd.
-   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Matthew Rickard <mjricka@epoch.ncsc.mil>, 2004.
 
@@ -147,7 +147,7 @@ audit_init (void)
   if (audit_fd < 0
       /* If kernel doesn't support audit, bail out */
       && errno != EINVAL && errno != EPROTONOSUPPORT && errno != EAFNOSUPPORT)
-    dbg_log (_("Failed opening connection to the audit subsystem"));
+    dbg_log (_("Failed opening connection to the audit subsystem: %m"));
 }
 #endif /* HAVE_LIBAUDIT */