]> granicus.if.org Git - python/commitdiff
bpo-38418: Fixes audit event for os.system to be named 'os.system' (GH-16670)
authorSteve Dower <steve.dower@python.org>
Fri, 18 Oct 2019 07:52:15 +0000 (00:52 -0700)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 18 Oct 2019 07:52:15 +0000 (00:52 -0700)
https://bugs.python.org/issue38418

Automerge-Triggered-By: @zooba
Misc/NEWS.d/next/Security/2019-10-08-19-29-55.bpo-38418.QL7s0-.rst [new file with mode: 0644]
Modules/posixmodule.c

diff --git a/Misc/NEWS.d/next/Security/2019-10-08-19-29-55.bpo-38418.QL7s0-.rst b/Misc/NEWS.d/next/Security/2019-10-08-19-29-55.bpo-38418.QL7s0-.rst
new file mode 100644 (file)
index 0000000..b42a000
--- /dev/null
@@ -0,0 +1 @@
+Fixes audit event for :func:`os.system` to be named ``os.system``.
index 3c4e254abb56dd64208194b9f961a0723e0d4664..686497090f88b8709fbb51abfc0011e379aa6d6d 100644 (file)
@@ -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;
     }
 
@@ -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;
     }