Startup script quoting cleanups per Anders Kaseorg

This commit is contained in:
Keith Winstein
2012-03-21 17:19:12 -04:00
parent 4eb3cace0b
commit 6842dbf066
2 changed files with 6 additions and 10 deletions
+2 -2
View File
@@ -316,8 +316,8 @@ int run_server( const char *desired_ip, const char *desired_port,
command[ 0 ] = strdup( argv0.c_str() );
fatal_assert( command[ 0 ] );
if ( execv( executable.c_str(), command ) < 0 ) {
perror( "execve" );
if ( execvp( executable.c_str(), command ) < 0 ) {
perror( "execvp" );
exit( 1 );
}
exit( 0 );