Mercurial > emacs
changeset 22999:5ec968f5560c
(initialize_fullname): Prefer getent if available.
author | Paul Eggert <eggert@twinsun.com> |
---|---|
date | Tue, 11 Aug 1998 22:11:08 +0000 |
parents | 0a5f1e713908 |
children | 1509bf9a54df |
files | lib-src/rcs2log |
diffstat | 1 files changed, 11 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/rcs2log Tue Aug 11 15:00:19 1998 +0000 +++ b/lib-src/rcs2log Tue Aug 11 22:11:08 1998 +0000 @@ -28,7 +28,7 @@ Report bugs to <bug-gnu-emacs@prep.ai.mit.edu>.' -Id='$Id: rcs2log,v 1.41 1997/05/13 22:44:08 eggert Exp eggert $' +Id='$Id: rcs2log,v 1.42 1997/06/26 01:00:03 eggert Exp eggert $' # Copyright 1992, 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. @@ -425,13 +425,16 @@ ' initialize_fullname=` - ( - cat /etc/passwd - for author in $authors - do NIS_PATH= nismatch $author passwd.org_dir - done - ypmatch $authors passwd - ) 2>/dev/null | + { + (getent passwd $authors) || + ( + cat /etc/passwd + for author in $authors + do NIS_PATH= nismatch $author passwd.org_dir + done + ypmatch $authors passwd + ) + } 2>/dev/null | $AWK -F: "$awkscript" `$initialize_fullname esac