Durga Deep Tirunagari wrote:

>Folks,
>
>we were running LINT against our code and it spewed out the following warning:
>
>warning: avoid using system() as it invokes the shell (E_SEC_SHELL_WARN)
>
>            
>Here is the code snippet:
>
>
>                sprintf (start_command,"%s", "/opt/SUNWdsee/start-slapd");
>                (void) system(start_command);
>
>  
>
In addition to the other reply, you shouldn't have to use the ghastly
(void)system() just to silence lint warnings.

Ian

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to