Skip to content

Commit

Permalink
Remove deprecated pledge("ioctl")
Browse files Browse the repository at this point in the history
Unbreaks mosh on recent (> 2017/03/18) OpenBSD systems.
  • Loading branch information
jcourreges authored and cgull committed Mar 20, 2017
1 parent c05793c commit c0bf805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/mosh-server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ static int run_server( const char *desired_ip, const char *desired_port,
/* Drop unnecessary privileges */
#ifdef HAVE_PLEDGE
/* OpenBSD pledge() syscall */
if ( pledge( "stdio inet ioctl tty", NULL )) {
if ( pledge( "stdio inet tty", NULL )) {
perror( "pledge() failed" );
exit( 1 );
}
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/stmclient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ bool STMClient::main( void )
/* Drop unnecessary privileges */
#ifdef HAVE_PLEDGE
/* OpenBSD pledge() syscall */
if ( pledge( "stdio inet ioctl tty", NULL )) {
if ( pledge( "stdio inet tty", NULL )) {
perror( "pledge() failed" );
exit( 1 );
}
Expand Down

0 comments on commit c0bf805

Please sign in to comment.