Permalink
Browse files

fix a perror() message in mosh-server

A perror() message flanking an open() call was reading "dup2" where it
should read "open".

[closes #377]
  • Loading branch information...
1 parent 8290e38 commit ebe7ae96f6c265d6b2a2d460a4396a1ad7c7bfd1 Alexander von Gernler committed with keithw Jan 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/frontend/mosh-server.cc
@@ -403,7 +403,7 @@ int run_server( const char *desired_ip, const char *desired_port,
nullfd = open( "/dev/null", O_RDWR );
if ( nullfd == -1 ) {
- perror( "dup2" );
+ perror( "open" );
exit( 1 );
}

0 comments on commit ebe7ae9

Please sign in to comment.