Fix build on Mac OS X

This commit is contained in:
Keith Winstein
2012-03-16 18:03:17 -04:00
parent cb03c34bc4
commit a07fb0d542
+1 -2
View File
@@ -213,8 +213,7 @@ int run_server( const char *desired_ip, const char *desired_port ) {
shell_name = "/bin/sh"; shell_name = "/bin/sh";
} }
string login_shell = "-"; string login_shell = "-" + shell_name;
login_shell.append( basename( shell_name.c_str() ) ); /* must be GNU basename */
char *my_argv[ 2 ]; char *my_argv[ 2 ];
my_argv[ 0 ] = strdup( login_shell.c_str() ); my_argv[ 0 ] = strdup( login_shell.c_str() );