terminate execl NULL pointer
This commit is contained in:
parent
78f74fbeb0
commit
043b85833e
12
net/xchat2/patches/patch-src_common_outbound_c
Normal file
12
net/xchat2/patches/patch-src_common_outbound_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_common_outbound_c,v 1.1 2003/10/26 02:08:51 pvalchev Exp $
|
||||
--- src/common/outbound.c.orig 2003-10-25 13:03:33.000000000 -0600
|
||||
+++ src/common/outbound.c 2003-10-25 13:03:49.000000000 -0600
|
||||
@@ -1393,7 +1393,7 @@ cmd_exec (struct session *sess, char *tb
|
||||
/* Now we call /bin/sh to run our cmd ; made it more friendly -DC1 */
|
||||
if (shell)
|
||||
{
|
||||
- execl ("/bin/sh", "sh", "-c", cmd, 0);
|
||||
+ execl ("/bin/sh", "sh", "-c", cmd, (void *)NULL);
|
||||
} else
|
||||
{
|
||||
char **argv;
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-konq-embed_dropin_kio_krun_cpp,v 1.1 2003/10/26 02:08:51 pvalchev Exp $
|
||||
--- konq-embed/dropin/kio/krun.cpp.orig 2003-10-25 13:00:54.000000000 -0600
|
||||
+++ konq-embed/dropin/kio/krun.cpp 2003-10-25 13:01:54.000000000 -0600
|
||||
@@ -288,7 +288,7 @@ int KRun::exec( const QString &app, cons
|
||||
|
||||
if ( !ref.isEmpty() )
|
||||
::setenv( "PROTOCOL_REFERER", ref.latin1(), true );
|
||||
- execlp( app.local8Bit().data(), app.local8Bit().data(), arg.local8Bit().data(), 0 );
|
||||
+ execlp( app.local8Bit().data(), app.local8Bit().data(), arg.local8Bit().data(), (void *)NULL );
|
||||
::exit( errno );
|
||||
#endif
|
||||
return -1;
|
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-konq-embed_dropin_kio_mimehandler_cpp,v 1.1 2003/10/26 02:08:51 pvalchev Exp $
|
||||
--- konq-embed/dropin/kio/mimehandler.cpp.orig 2003-10-25 13:01:24.000000000 -0600
|
||||
+++ konq-embed/dropin/kio/mimehandler.cpp 2003-10-25 13:01:46.000000000 -0600
|
||||
@@ -79,7 +79,7 @@ ExternalFilter* ExternalFilter::Create(
|
||||
::setenv( "FILTER_MIME_OUT", otype.latin1(), TRUE );
|
||||
::setenv( "FILTER_URL", url.url().latin1(), TRUE );
|
||||
const char *exe = app.latin1();
|
||||
- ::execlp( exe, exe, 0 );
|
||||
+ ::execlp( exe, exe, (void *)NULL );
|
||||
::exit( errno );
|
||||
}
|
||||
else
|
12
x11/xdmchoose/patches/patch-chooser_c
Normal file
12
x11/xdmchoose/patches/patch-chooser_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-chooser_c,v 1.1 2003/10/26 02:08:51 pvalchev Exp $
|
||||
--- chooser.c.orig 2003-10-25 13:04:31.000000000 -0600
|
||||
+++ chooser.c 2003-10-25 13:04:38.000000000 -0600
|
||||
@@ -1010,7 +1010,7 @@ static void run_init_script (void)
|
||||
return;
|
||||
break;
|
||||
case 0:
|
||||
- execl (_globconfig.startscript, _globconfig.startscript, NULL);
|
||||
+ execl (_globconfig.startscript, _globconfig.startscript, (void *)NULL);
|
||||
_exit (-1);
|
||||
break;
|
||||
default:
|
Loading…
Reference in New Issue
Block a user