summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-10-31 17:39:52 +0000
committerMike Frysinger <vapier@gentoo.org>2011-10-31 17:39:52 +0000
commit7344056bc10a00cd35ec1e8ba590c0d2a0236dd3 (patch)
treed321724e03c1b3a7f48ba28c9af3bf5b37ccf1f2 /eclass/user.eclass
parentMask USE=nsplugin for app-admin/packagekit-base. (diff)
downloadhistorical-7344056bc10a00cd35ec1e8ba590c0d2a0236dd3.tar.gz
historical-7344056bc10a00cd35ec1e8ba590c0d2a0236dd3.tar.bz2
historical-7344056bc10a00cd35ec1e8ba590c0d2a0236dd3.zip
drop unused funcs
Diffstat (limited to 'eclass/user.eclass')
-rw-r--r--eclass/user.eclass54
1 files changed, 1 insertions, 53 deletions
diff --git a/eclass/user.eclass b/eclass/user.eclass
index f89ea6dfd98b..e85e7487ae17 100644
--- a/eclass/user.eclass
+++ b/eclass/user.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.3 2011/10/27 07:49:53 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.4 2011/10/31 17:39:52 vapier Exp $
# @ECLASS: user.eclass
# @MAINTAINER:
@@ -389,55 +389,3 @@ enewgroup() {
esac
export SANDBOX_ON="${oldsandbox}"
}
-
-# Gets the home directory for the specified user
-# it's a wrap around egetent as the position of the home directory in the line
-# varies depending on the os used.
-#
-# To use that, inherit eutils, not portability!
-egethome() {
- local pos
-
- case ${CHOST} in
- *-darwin*|*-freebsd*|*-dragonfly*)
- pos=9
- ;;
- *) # Linux, NetBSD, OpenBSD, etc...
- pos=6
- ;;
- esac
-
- egetent passwd $1 | cut -d: -f${pos}
-}
-
-# Gets the shell for the specified user
-# it's a wrap around egetent as the position of the home directory in the line
-# varies depending on the os used.
-#
-# To use that, inherit eutils, not portability!
-egetshell() {
- local pos
-
- case ${CHOST} in
- *-darwin*|*-freebsd*|*-dragonfly*)
- pos=10
- ;;
- *) # Linux, NetBSD, OpenBSD, etc...
- pos=7
- ;;
- esac
-
- egetent passwd "$1" | cut -d: -f${pos}
-}
-
-# Returns true if specified user has a shell that precludes logins
-# on whichever operating system.
-is-login-disabled() {
-
- case $(egetshell "$1") in
- /bin/false|/usr/bin/false|/sbin/nologin|/usr/sbin/nologin)
- return 0 ;;
- *)
- return 1 ;;
- esac
-}