fortplot_system_commands Module

System command operations module

This module handles system command operations with strict security controls to prevent command injection vulnerabilities.



Subroutines

public subroutine open_with_default_app_runtime(filename, success)

Open file with default application - SECURITY: Disabled for compliance

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
logical, intent(out) :: success

public subroutine use_system_mkdir_ci(path, success)

SECURITY FIX: Pure Fortran directory creation - no system calls

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: path
logical, intent(out) :: success

public subroutine try_system_mkdir(path, success)

Try to use system mkdir command as last resort (with security checks)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: path
logical, intent(out) :: success

public subroutine check_command_available_runtime(command_name, available)

Check if a command is available - with security restrictions

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: command_name
logical, intent(out) :: available