summaryrefslogtreecommitdiff
path: root/libc/debian/patches/libnsl-avoid-libbsm.patch
blob: 9f3fd65ce700db977405def5014f5697531c7d5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Index: b/usr/src/lib/libnsl/nss/getauuser.c
===================================================================
--- a/usr/src/lib/libnsl/nss/getauuser.c
+++ b/usr/src/lib/libnsl/nss/getauuser.c
@@ -31,9 +31,21 @@
 #include <sys/types.h>
 #include <nss_dbdefs.h>
 #include <string.h>
-#include <bsm/libbsm.h>
 #include <secdb.h>
 
+#ifndef AUDITUSER_PARSE_ERANGE
+#define AUDITUSER_PARSE_ERANGE 1
+#endif
+
+#ifndef AUDITUSER_NOT_FOUND
+#define AUDITUSER_NOT_FOUND 2
+#endif
+
+typedef struct au_user_str_s {
+    char *au_name;
+    char *au_always;
+    char *au_never;
+} au_user_str_t;
 
 /* externs from parse.c */
 extern char *_strtok_escape(char *, char *, char **);