mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	bpo-38418: Fixes audit event for os.system to be named 'os.system' (GH-16670)
https://bugs.python.org/issue38418 Automerge-Triggered-By: @zooba
This commit is contained in:
		
							parent
							
								
									b1fa72a5b7
								
							
						
					
					
						commit
						fbe3c76c7c
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
Fixes audit event for :func:`os.system` to be named ``os.system``.
 | 
			
		||||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue