# HG changeset patch # User Paul Eggert # Date 821668676 0 # Node ID 940083ef25b923dea7d6d231fbd3afc94ba75174 # Parent da563949c7d7f9bac84e7d58ecd712fcbf408d99 (initialize_fullname): Add support for NIS+. (hostname): Fully qualify the default hostname with the domainname if the hostname lacks a `.'. diff -r da563949c7d7 -r 940083ef25b9 lib-src/=rcs2log --- a/lib-src/=rcs2log Sun Jan 14 23:24:40 1996 +0000 +++ b/lib-src/=rcs2log Mon Jan 15 01:17:56 1996 +0000 @@ -12,9 +12,9 @@ # Author: Paul Eggert -# $Id: rcs2log,v 1.25 1995/07/07 22:47:57 eggert Exp eggert $ +# $Id: rcs2log,v 1.27 1996/01/15 01:17:03 eggert Exp $ -# Copyright 1992, 1993, 1994, 1995 Free Software Foundation, Inc. +# Copyright 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -364,7 +364,13 @@ ' initialize_fullname=` - (cat /etc/passwd; ypmatch $authors passwd) 2>/dev/null | + ( + cat /etc/passwd + for author in $authors + do nismatch $author passwd.org_dir + done + ypmatch $authors passwd + ) 2>/dev/null | $AWK -F: "$awkscript" `$initialize_fullname esac @@ -414,6 +420,15 @@ echo >&2 "$0: cannot deduce hostname" exit 1 } + + case $hostname in + *.*) ;; + *) + domainname=`(domainname) 2>/dev/null` && + case $domainname in + *.*) hostname=$hostname.$domainname + esac + esac esac diff -r da563949c7d7 -r 940083ef25b9 lib-src/rcs2log --- a/lib-src/rcs2log Sun Jan 14 23:24:40 1996 +0000 +++ b/lib-src/rcs2log Mon Jan 15 01:17:56 1996 +0000 @@ -12,9 +12,9 @@ # Author: Paul Eggert -# $Id: rcs2log,v 1.25 1995/07/07 22:47:57 eggert Exp eggert $ +# $Id: rcs2log,v 1.27 1996/01/15 01:17:03 eggert Exp $ -# Copyright 1992, 1993, 1994, 1995 Free Software Foundation, Inc. +# Copyright 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -364,7 +364,13 @@ ' initialize_fullname=` - (cat /etc/passwd; ypmatch $authors passwd) 2>/dev/null | + ( + cat /etc/passwd + for author in $authors + do nismatch $author passwd.org_dir + done + ypmatch $authors passwd + ) 2>/dev/null | $AWK -F: "$awkscript" `$initialize_fullname esac @@ -414,6 +420,15 @@ echo >&2 "$0: cannot deduce hostname" exit 1 } + + case $hostname in + *.*) ;; + *) + domainname=`(domainname) 2>/dev/null` && + case $domainname in + *.*) hostname=$hostname.$domainname + esac + esac esac