From 3b0f088acb4c8da6c87b63ba965febc3695d323f Mon Sep 17 00:00:00 2001 From: chip Date: Mon, 16 Sep 2002 02:27:44 +0000 Subject: [PATCH] 2002-09-15 Chip Salzenberg * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET socket, as occurs when run from sshd. * debian/changelog: Version 1.0.2-1. --- ChangeLog | 6 ++++++ debian/changelog | 9 +++++---- support/nfs/rpcmisc.c | 5 ++--- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3efb0fc..092ce27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-09-15 Chip Salzenberg + + * support/nfs/rpcmisc.c (rpc_init): Allow stdin to be a non-INET + socket, as occurs when run from sshd. + * debian/changelog: Version 1.0.2-1. + 2002-09-12 H.J. Lu * support/nfs/svc_socket.c: Remove HAVE_SVCTCP_SOCKET and diff --git a/debian/changelog b/debian/changelog index 1954f30..3a7eae2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,11 @@ -nfs-utils (1:1.0.2-1) unstable; urgency=low +nfs-utils (1:1.0.2-1) unstable; urgency=high * New upstream version: > Allow program stdin to be a non-INET socket. (closes: #142557) * Start nfs-common after nfs-kernel-server so that the server is running - when statd restarts. In postinst, remove bad rc.d links from old - packages. From Philippe Troin . (closes: #160800) + when statd restarts; without this change, a rebooting server may make + clients lose mounts. (This postinst removes bad rc.d links from old + packages.) From Philippe Troin . (closes: #160800) * Make init scripts exit with non-zero status when daemons don't start. * Add titles to templates where I forgot them. (closes: #158489) * Add /etc/default/{nfs-common,nfs-kernel-server} so setting random @@ -14,7 +15,7 @@ nfs-utils (1:1.0.2-1) unstable; urgency=low * Use invoke-rc.d to avoid premature daemon starts. (closes: 158574) * Change priority of nfs-kernel-server to 'optional'. - -- + -- Chip Salzenberg Sun, 15 Sep 2002 22:00:27 -0400 nfs-utils (1:1.0.1-1) unstable; urgency=low diff --git a/support/nfs/rpcmisc.c b/support/nfs/rpcmisc.c index 832de5f..7a100c2 100644 --- a/support/nfs/rpcmisc.c +++ b/support/nfs/rpcmisc.c @@ -50,11 +50,10 @@ rpc_init(char *name, int prog, int vers, void (*dispatch)(), int defport) asize = sizeof(saddr); sock = 0; - if (getsockname(0, (struct sockaddr *) &saddr, &asize) == 0) { + if (getsockname(0, (struct sockaddr *) &saddr, &asize) == 0 + && saddr.sin_family == AF_INET) { int ssize = sizeof (int); _rpcfdtype = 0; - if (saddr.sin_family != AF_INET) - xlog(L_FATAL, "init: stdin is bound to non-inet addr"); if (getsockopt(0, SOL_SOCKET, SO_TYPE, (char *)&_rpcfdtype, &ssize) == -1) xlog(L_FATAL, "getsockopt failed: %s", strerror(errno)); -- 2.39.5