Skip to content

Commit fb22301

Browse files
committed
Update for the python bindings
Fixed the MACPROTO constant name in the Python bindings. It had an extra comma in the string. Previously, the line used a colon (_audit_la_HEADERS: $(top_builddir)/config.h), which created an empty rule and did not install the header. This was removed.
1 parent 361f506 commit fb22301

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

bindings/python/auparse_python.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2519,7 +2519,7 @@ PyInit_auparse(void)
25192519
PyModule_AddIntConstant(m, "AUPARSE_TYPE_PROCTITLE", AUPARSE_TYPE_PROCTITLE);
25202520
PyModule_AddIntConstant(m, "AUPARSE_TYPE_HOOK", AUPARSE_TYPE_HOOK);
25212521
PyModule_AddIntConstant(m, "AUPARSE_TYPE_NETACTION", AUPARSE_TYPE_NETACTION);
2522-
PyModule_AddIntConstant(m, "AUPARSE_TYPE_MACPROTO,", AUPARSE_TYPE_MACPROTO);
2522+
PyModule_AddIntConstant(m, "AUPARSE_TYPE_MACPROTO", AUPARSE_TYPE_MACPROTO);
25232523
PyModule_AddIntConstant(m, "AUPARSE_TYPE_IOCTL_REQ", AUPARSE_TYPE_IOCTL_REQ);
25242524
PyModule_AddIntConstant(m, "AUPARSE_TYPE_ESCAPED_KEY", AUPARSE_TYPE_ESCAPED_KEY);
25252525
PyModule_AddIntConstant(m, "AUPARSE_TYPE_ESCAPED_FILE", AUPARSE_TYPE_ESCAPED_FILE);

bindings/swig/python3/Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pyexec_PYTHON = audit.py
3030
pyexec_LTLIBRARIES = _audit.la
3131
_audit_la_CFLAGS = -shared
3232
_audit_la_LDFLAGS = -module -avoid-version -Wl,-z,relro
33-
_audit_la_HEADERS: $(top_builddir)/config.h
3433
_audit_la_DEPENDENCIES =${top_srcdir}/lib/audit_logging.h ${top_builddir}/lib/libaudit.la
3534
_audit_la_LIBADD = ${top_builddir}/lib/libaudit.la
3635
nodist__audit_la_SOURCES = audit_wrap.c

0 commit comments

Comments
 (0)