Permalink
Browse files

Fix a bug running enable_user_pefs when the user may have a " in thei…

…r password
  • Loading branch information...
kmoore134 committed Aug 27, 2013
1 parent bfe4e62 commit b84dfe9757ccb53be86590879983025f17efb2ff
Showing with 1 addition and 1 deletion.
  1. +1 −1 src-qt4/pc-firstbootgui/firstboot.cpp
@@ -455,7 +455,7 @@ void Installer::saveSettings()
// Encrypt the users home-directory?
if ( checkEnc->isChecked() )
- system("enable_user_pefs " + lineUsername->text().toLatin1() + " " + linePW->text().toLatin1());
+ system("enable_user_pefs '" + lineUsername->text().toLatin1() + "' '" + linePW->text().toLatin1() + "'");
// Do we need to change the system hostname?
if ( lineHostname->text() != pcbsd::Utils::getConfFileValue("/etc/rc.conf", "hostname=", 1) )

0 comments on commit b84dfe9

Please sign in to comment.