Skip to content

Commit

Permalink
bpo-38418: Fixes audit event for os.system to be named 'os.system' (G…
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba authored and miss-islington committed Oct 18, 2019
1 parent b1fa72a commit fbe3c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixes audit event for :func:`os.system` to be named ``os.system``.
4 changes: 2 additions & 2 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -4324,7 +4324,7 @@ os_system_impl(PyObject *module, const Py_UNICODE *command)
{
long result;

if (PySys_Audit("system", "(u)", command) < 0) {
if (PySys_Audit("os.system", "(u)", command) < 0) {
return -1;
}

Expand All @@ -4351,7 +4351,7 @@ os_system_impl(PyObject *module, PyObject *command)
long result;
const char *bytes = PyBytes_AsString(command);

if (PySys_Audit("system", "(O)", command) < 0) {
if (PySys_Audit("os.system", "(O)", command) < 0) {
return -1;
}

Expand Down

0 comments on commit fbe3c76

Please sign in to comment.