Updated ebuild to match webmin's update for security bug #7731. usermin isn't affect...
authorJeremy Huddleston <eradicator@gentoo.org>
Thu, 13 Jan 2005 13:19:16 +0000 (13:19 +0000)
committerJeremy Huddleston <eradicator@gentoo.org>
Thu, 13 Jan 2005 13:19:16 +0000 (13:19 +0000)
app-admin/usermin/ChangeLog
app-admin/usermin/usermin-1.100-r1.ebuild

index 64bac1f0057419a9c794fe0b02d3632671797b9e..3117b19fdef9e570bd5a18a33fb4d912b96c0eb2 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-admin/usermin
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v 1.46 2005/01/01 11:33:41 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v 1.47 2005/01/13 13:19:15 eradicator Exp $
+
+  13 Jan 2005; Jeremy Huddleston <eradicator@gentoo.org>
+  usermin-1.100-r1.ebuild:
+  Updated ebuild to match webmin's update for security bug #7731. usermin
+  isn't affected, but I'm doing this anyway to be safe if behavior changes in
+  the future.
 
 *usermin-1.100-r1 (31 Dec 2004)
 
index 8fe03a44d931b589dd32f017176964af588db5dc..b030b736111ddaca074fcdc973768b791b6b30ba 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/usermin-1.100-r1.ebuild,v 1.2 2005/01/01 11:33:41 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/usermin-1.100-r1.ebuild,v 1.3 2005/01/13 13:19:16 eradicator Exp $
 
 IUSE="ssl"
 
@@ -60,7 +60,7 @@ src_install() {
        autoos=1
        port=20000
        login=root
-       crypt=`grep "^root:" ${ROOT}/etc/shadow | cut -f 2 -d :`
+       crypt="XXX"
        host=`hostname`
        use ssl && ssl=1 || ssl=0
        atboot=0
@@ -83,6 +83,8 @@ src_install() {
 }
 
 pkg_postinst() {
+       local crypt=$(grep "^root:" ${ROOT}/etc/shadow | cut -f 2 -d :)
+       dosed "s/root:XXX/root:${crypt}/" /etc/usermin/miniserv.users
        einfo "To make usermin start at boot time, run: 'rc-update add usermin default'."
        einfo "Point your web browser to http://localhost:20000 to use usermin."
 }