summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kelly <mike@weatherwax.co.uk>2025-07-14 18:02:23 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-07-14 18:02:53 +0200
commitecb2d6fe006e7ee622126a8d773469be332fabdd (patch)
tree8869f023fde211fc58056afc3e510f63caff19c7
parente895c1297f53c671a64666fb8ab29f83c8a6c80e (diff)
nfs: mount_root: Fix and remove comment regarding getservbyname
as its conclusion was valid and now implemented.
-rw-r--r--nfs/mount.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/nfs/mount.c b/nfs/mount.c
index 45a2ad4f..65b9a9b1 100644
--- a/nfs/mount.c
+++ b/nfs/mount.c
@@ -102,6 +102,7 @@ mount_root (char *name, char *host)
void *rpcbuf;
int port;
error_t err;
+ struct fhandle mount_fhandle;
struct node *np;
short pmapport;
@@ -110,13 +111,7 @@ mount_root (char *name, char *host)
{
struct servent *s;
- /* XXX This will always fail! pmap_service_name will always be "sunrpc"
- What should pmap_service_name really be? By definition the second
- argument is either "tcp" or "udp" Thus, is this backwards
- (as service_name suggests)? If so, should it read:
- s = getservbyname (pmap_service_name, "udp");
- or is there something I am missing here? */
- s = getservbyname ("sunrpc", pmap_service_name);
+ s = getservbyname (pmap_service_name, "udp");
if (s)
pmapport = s->s_port;
else