diff options
Diffstat (limited to 'main/alpine-conf/0001-setup-acf-fix-password-generation.patch')
-rw-r--r-- | main/alpine-conf/0001-setup-acf-fix-password-generation.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/alpine-conf/0001-setup-acf-fix-password-generation.patch b/main/alpine-conf/0001-setup-acf-fix-password-generation.patch new file mode 100644 index 0000000000..6132c08adb --- /dev/null +++ b/main/alpine-conf/0001-setup-acf-fix-password-generation.patch @@ -0,0 +1,25 @@ +From b7ac1f3f8b4ddb7cc4a585bc8b7ebdaa2dd8ae16 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Thu, 20 Aug 2009 07:31:21 +0000 +Subject: [PATCH] setup-acf: fix password generation + +--- + setup-acf.in | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/setup-acf.in b/setup-acf.in +index 8c386ee..92d769c 100644 +--- a/setup-acf.in ++++ b/setup-acf.in +@@ -37,7 +37,7 @@ if [ "$create_passwd" != "no" ]; then + fi + # this will show password on process list but we assume user is alone + # on the box at this stage +- _md5passwd=$(echo -n "$_password" | md5sum) ++ _md5passwd=$(echo -n "$_password" | md5sum | cut -d' ' -f1) + echo "root:$_md5passwd:Admin account:ADMIN" >/etc/acf/passwd + fi + +-- +1.6.4 + |