Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Make sure to pass args to enable_user_pefs using a QProcess, in order…
Browse files Browse the repository at this point in the history
… to get any special

chars properly
  • Loading branch information
Kris Moore committed Sep 1, 2013
1 parent 1db1c9b commit 83428f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src-qt4/pc-usermanager/usermanagerback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ bool UserManagerBackend::commit()

// Are we enabling encryption?
if ( userIt->getEnc() ) {
system("enable_user_pefs " + userIt->getUsername().toLatin1() + " " + userIt->getClearPassword().toLatin1() );
QProcess::execute("enable_user_pefs", QStringList() << userIt->getUsername() << userIt->getClearPassword() );

}

break;
Expand Down

0 comments on commit 83428f0

Please sign in to comment.