[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdesu
From: Alex Kern <alex.kern () gmx ! de>
Date: 2006-05-05 16:57:08
Message-ID: 1146848228.076065.1442.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 537720 by kernalex:
repair kdesu, tested
M +4 -4 process.cpp
--- trunk/KDE/kdelibs/kdesu/process.cpp #537719:537720
@@ -294,7 +294,7 @@
putenv(const_cast<char *>(d->env.at(i).constData()));
}
unsetenv("KDE_FULL_SESSION");
-
+
// set temporarily LC_ALL to C, for su (to be able to parse "Password:")
const char* old_lc_all = getenv( "LC_ALL" );
if( old_lc_all != NULL )
@@ -323,10 +323,10 @@
i = 0;
argp[i++] = path;
- for (QList<QByteArray>::ConstIterator it=args.begin(); it!=args.end(); ++it)
- argp[i++] = *it;
+ for (QList<QByteArray>::ConstIterator it=args.begin(); it!=args.end(); ++it, ++i)
+ argp[i] = *it;
- argp[i + 2] = 0;
+ argp[i] = NULL;
execv(path, const_cast<char **>(argp));
kError(900) << k_lineinfo << "execv(\"" << path << "\"): " << perror << "\n";
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic