]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-2.10f-mount-tcp.patch
9c49193d85ed9c59c5e514103c5f2692 util-linux-2.10f-mount-tcp.patch
[packages/util-linux.git] / util-linux-2.10f-mount-tcp.patch
1 --- util-linux-2.10f/mount/nfsmount.c.orig      Wed May 10 13:54:58 2000
2 +++ util-linux-2.10f/mount/nfsmount.c   Wed May 10 13:57:09 2000
3 @@ -554,6 +554,17 @@
4                 server_addr.sin_port = PMAPPORT;
5                 port = pmap_getport(&server_addr, nfsprog, nfsvers,
6                         tcp ? IPPROTO_TCP : IPPROTO_UDP);
7 +
8 +               /* Here we check to see if user is mounting with the tcp
9 +               ** option.  If so, and if the portmap returns a '0' for
10 +               ** port (service unavailable), we then exit out notifying
11 +               ** the user, rather than hanging up mount.
12 +               */
13 +               if (port == 0 && tcp == 1) {
14 +                       perror(_("nfs server reported service unavailable"));
15 +                       goto fail;
16 +               }
17 +
18                 if (port == 0)
19                         port = NFS_PORT;
20  #ifdef NFS_MOUNT_DEBUG
This page took 0.023851 seconds and 3 git commands to generate.