summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>1998-08-11 22:11:08 +0000
committerPaul Eggert <eggert@twinsun.com>1998-08-11 22:11:08 +0000
commitc4c65c33959123460997dd0179c89fd50213e5be (patch)
treec741548046065cfd0095297167610f409aaba140 /lib-src
parent81e39f174dbbf0e6171fb45075aeb849cba82d22 (diff)
(initialize_fullname): Prefer getent if available.
Diffstat (limited to 'lib-src')
-rwxr-xr-xlib-src/rcs2log19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib-src/rcs2log b/lib-src/rcs2log
index 099d4a3602..dd5992aa23 100755
--- a/lib-src/rcs2log
+++ b/lib-src/rcs2log
@@ -28,7 +28,7 @@ Options:
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 @@ EOF
'
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