Created
August 18, 2015 16:50
-
-
Save shadeslayer/a25d4e7c78bd45792d70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/modules/users/SetPasswordJob.cpp b/src/modules/users/SetPasswordJob.cpp | |
index 5631ded..5ec86ed 100644 | |
--- a/src/modules/users/SetPasswordJob.cpp | |
+++ b/src/modules/users/SetPasswordJob.cpp | |
@@ -59,7 +59,7 @@ SetPasswordJob::exec() | |
return Calamares::JobResult::error( tr( "Bad destination system path." ), | |
tr( "rootMountPoint is %1" ).arg( destDir.absolutePath() ) ); | |
- QByteArray data = crypt( m_newPassword.toLatin1(), QString( "$6$%1$" ).arg( m_userName ).toLatin1() ); | |
+ QByteArray data = crypt( m_newPassword.toLatin1(), QString( "\$6\$%1\$" ).arg( m_userName ).toLatin1() ); | |
int ec = CalamaresUtils::System::instance()-> | |
targetEnvCall( { "usermod", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment