Skip to content

Instantly share code, notes, and snippets.

@shadeslayer
Created August 18, 2015 16:50
Show Gist options
  • Save shadeslayer/a25d4e7c78bd45792d70 to your computer and use it in GitHub Desktop.
Save shadeslayer/a25d4e7c78bd45792d70 to your computer and use it in GitHub Desktop.
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