[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KONQE_1_0_BRANCH: kdenox/konq-embed/dropin/kio
From: Simon Hausmann <hausmann () kde ! org>
Date: 2002-12-13 15:55:46
[Download RAW message or body]
CVS commit by hausmann:
- don't execute external protocol handlers with /bin/sh
M +1 -3 krun.cpp 1.10.2.15
--- kdenox/konq-embed/dropin/kio/krun.cpp #1.10.2.14:1.10.2.15
@@ -245,5 +245,4 @@ int KRun::exec( const QString &app, cons
#endif
#if !defined(Q_WS_WIN)
- QCString cmdline = app.local8Bit() + " " + arg.local8Bit();
int filedes[2];
@@ -287,6 +286,5 @@ int KRun::exec( const QString &app, cons
if ( !ref.isEmpty() )
::setenv( "PROTOCOL_REFERER", ref.latin1(), true );
- const char *shell = "/bin/sh";
- execl( shell, shell, "-c", cmdline.data(), 0 );
+ execlp( app.local8Bit().data(), app.local8Bit().data(), arg.local8Bit().data(), 0 );
::exit( errno );
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic