--- parser3/src/main/pa_exec.C 2024/12/24 02:58:47 1.104 +++ parser3/src/main/pa_exec.C 2026/10/03 14:30:03 1.107 @@ -1,7 +1,7 @@ /** @file Parser: program executing for different OS-es. - Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian @todo setrlimit @@ -13,7 +13,7 @@ #include "pa_exception.h" #include "pa_common.h" -volatile const char * IDENT_PA_EXEC_C="$Id: pa_exec.C,v 1.104 2024/12/24 02:58:47 moko Exp $" IDENT_PA_EXEC_H; +volatile const char * IDENT_PA_EXEC_C="$Id: pa_exec.C,v 1.107 2026/10/03 14:30:03 moko Exp $" IDENT_PA_EXEC_H; #ifdef _MSC_VER @@ -81,7 +81,7 @@ static DWORD CreateHiddenConsoleProcess( char dir[MAX_STRING]; pa_strncpy(dir, szScriptFileSpec, MAX_STRING); lsplit(dir,' '); // trim arguments - rsplit(dir,'/'); rsplit(dir,'\\'); // trim filename + rsplit(dir,"/\\"); // trim filename // Create a child process (suspended) fCreated=CreateProcess(NULL, @@ -472,7 +472,7 @@ PA_exec_result pa_exec(bool forced_allow if(!forced_allow) { struct stat finfo; if(pa_stat(file_spec_cstr, &finfo)!=0) - throw Exception("file.missing", &file_spec, "stat failed: %s (%d), actual filename '%s'", strerror(errno), errno, file_spec_cstr); + throw Exception("file.missing", &file_spec, "stat failed: %s (%d)%s", strerror(errno), errno, actual_filename(file_spec, file_spec_cstr)); check_safe_mode(finfo, file_spec, file_spec_cstr); }