mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- The libunix.a flavour of system() no longer attempts to translate the name
of a command unless it contains path separator characters. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14929 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdlib_system.c,v 1.8 2005-04-24 08:46:37 obarthel Exp $
|
||||
* $Id: stdlib_system.c,v 1.9 2005-04-28 15:38:47 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -138,7 +138,9 @@ system(const char * command)
|
||||
|
||||
command_name = just_the_command_name;
|
||||
|
||||
if(__translate_unix_to_amiga_path_name((const char **)&command_name,&command_nti) != 0)
|
||||
/* Don't try to translate the name of the command unless it has
|
||||
path name separator characters in it. */
|
||||
if(strchr(command_name,'/') != NULL && __translate_unix_to_amiga_path_name((const char **)&command_name,&command_nti) != 0)
|
||||
{
|
||||
result = ERROR;
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user