Bug#381923: [Adduser-devel] Bug#381923: rpcinfo: can't contact
portpammer: RPC: Remote system error - Connection refused
Stephen Gran
sgran at debian.org
Tue Aug 8 09:51:11 UTC 2006
This one time, at band camp, Marc Haber said:
> And here is the attachment.
> Index: debian/changelog
> ===================================================================
> --- debian/changelog (revision 645)
> +++ debian/changelog (working copy)
> @@ -1,8 +1,10 @@
> adduser (3.96.0) UNRELEASED; urgency=low
>
> * NOT RELEASED YET
> + * Don't show rpcinfo -p errors to the user.
> + Thanks to Michael Prokop. Closes: #381923
>
> - -- Marc Haber <mh+debian-packages at zugschlus.de> Mon, 31 Jul 2006 07:08:01 +0000
> + -- Marc Haber <mh+debian-packages at zugschlus.de> Tue, 8 Aug 2006 09:07:58 +0000
>
> adduser (3.96) unstable; urgency=low
>
> Index: AdduserCommon.pm
> ===================================================================
> --- AdduserCommon.pm (revision 645)
> +++ AdduserCommon.pm (working copy)
> @@ -20,8 +20,12 @@
> } elsif(-f "/etc/init.d/nis") {
> $nisconfig = "/etc/init.d/nis";
> }
> + # find out whether a local ypserv is running
> + # We can ditch any rpcinfo error since if the portmapper is nonfunctional,
> + # we couldn't connect to ypserv anyway. If this assumption is invalid,
> + # please file a bug and suggest a better way.
> if(defined($nisconfig) && -f "/var/yp/Makefile" &&
> - -x "/usr/bin/rpcinfo" && grep(/ypserv/, qx{/usr/bin/rpcinfo -p})) {
> + -x "/usr/bin/rpcinfo" && grep(/ypserv/, qx{/usr/bin/rpcinfo -p 2>/dev/null})) {
> open(NISCONFIG, "<$nisconfig");
> if(grep(/^NISSERVER=master/, <NISCONFIG>)) {
> system("make", "-C", "/var/yp");
/me approves.
--
-----------------------------------------------------------------
| ,''`. Stephen Gran |
| : :' : sgran at debian.org |
| `. `' Debian user, admin, and developer |
| `- http://www.debian.org |
-----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060808/b7fae5ae/attachment.pgp
More information about the Adduser-devel
mailing list