summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-02-01 21:26:12 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-02-01 21:26:12 +0000
commit7ec39756ac282b19087d895601b04e17c0cdf26d (patch)
treeb037c1a023b87ce097f9b5841a25a43e81781c43 /nfs
parent0e14a765de211302dd44016a63f397f8e7d47d32 (diff)
Formerly mount.c.~8~
Diffstat (limited to 'nfs')
-rw-r--r--nfs/mount.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nfs/mount.c b/nfs/mount.c
index 2c53b72e..1dcdac1e 100644
--- a/nfs/mount.c
+++ b/nfs/mount.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -56,7 +56,7 @@ mount_root (char *name, char *host)
struct node *np;
/* Lookup the portmapper port number */
- s = getservbyname ("portmap", "udp");
+ s = getservbyname ("sunrpc", "udp");
if (!s)
{
fprintf (stderr, "portmap/udp: unknown service\n");
@@ -73,7 +73,7 @@ mount_root (char *name, char *host)
addr.sin_family = h->h_addrtype;
bcopy (h->h_addr_list[0], &addr.sin_addr, h->h_length);
- addr.sin_port = htons (s->s_port);
+ addr.sin_port = s->s_port;
connect (main_udp_socket,
(struct sockaddr *)&addr, sizeof (struct sockaddr_in));