Remove deprecated pledge("ioctl")

Unbreaks mosh on recent (> 2017/03/18) OpenBSD systems.
This commit is contained in:
Jérémie Courrèges-Anglas
2017-03-20 11:22:55 +01:00
committed by John Hood
parent c05793cb22
commit c0bf8053b2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 );
}
+1 -1
View File
@@ -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 );
}