/[gentoo-x86]/eclass/user.eclass
Gentoo

Diff of /eclass/user.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.2 2011/10/27 07:26:55 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.3 2011/10/27 07:49:53 vapier Exp $
4 4
5# @ECLASS: user.eclass 5# @ECLASS: user.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org (Linux) 7# base-system@gentoo.org (Linux)
8# Joe Jezak <josejx@gmail.com> (OS X) 8# Joe Jezak <josejx@gmail.com> (OS X)
70 ;; 70 ;;
71 *-netbsd*|*-openbsd*) 71 *-netbsd*|*-openbsd*)
72 grep "$2:\*:" /etc/$1 72 grep "$2:\*:" /etc/$1
73 ;; 73 ;;
74 *) 74 *)
75 type -p nscd >& /dev/null && nscd -i "$1" 75 # ignore output if nscd doesn't exist, or we're not running as root
76 nscd -i "$1" 2>/dev/null
76 getent "$1" "$2" 77 getent "$1" "$2"
77 ;; 78 ;;
78 esac 79 esac
79} 80}
80 81

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20