summaryrefslogtreecommitdiffstats
path: root/users.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-03-11 15:46:59 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-03-11 15:46:59 -1000
commit2a19669fd27954a72a8b008ab1f2f4397e6f4b8f (patch)
tree3f9a27e72136b87c20452d0ec6cd4203388805d2 /users.py
parent04d4799e734f9903fb1a00a8eb804da2e95e0a3d (diff)
downloadanaconda-2a19669fd27954a72a8b008ab1f2f4397e6f4b8f.tar.gz
anaconda-2a19669fd27954a72a8b008ab1f2f4397e6f4b8f.tar.xz
anaconda-2a19669fd27954a72a8b008ab1f2f4397e6f4b8f.zip
Make sure default is SHA-512 for libuser.conf.
We write out a libuser.conf file to /tmp for use by the installer and other programs in rescue mode. Make sure we default to sha512 when writing out this file.
Diffstat (limited to 'users.py')
-rw-r--r--users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/users.py b/users.py
index 799fa123c..856012db1 100644
--- a/users.py
+++ b/users.py
@@ -30,7 +30,7 @@ import os.path
import logging
log = logging.getLogger("anaconda")
-def createLuserConf(instPath, algoname='md5'):
+def createLuserConf(instPath, algoname='sha512'):
"""Writes a libuser.conf for instPath."""
if os.getenv("LIBUSER_CONF") and \
os.access(os.environ["LIBUSER_CONF"], os.R_OK):