[klibc] [PATCH] possible bug in bindresvport

Olaf Hering olh at suse.de
Tue Jan 6 22:14:48 PST 2004


 On Tue, Jan 06, Olaf Hering wrote:

> nfsmount doesnt work anymore for me. This patch fixes at least udp nfs
> mounts. tcp does still hang. client and server is 2.6.

I had to extend the packet size.

--- /dev/shm/mount.c    2003-05-06 00:15:09.000000000 +0200
+++ nfsmount/mount.c    2004-01-06 21:55:37.455378214 +0100
@@ -144,7 +144,7 @@ static int mount_call(__u32 proc, __u32 
        int ret = 0;
 
        path_len = strlen(path);
-       call_len = sizeof(*mnt_call) + pad_len(path_len);
+       call_len = sizeof(*mnt_call) + pad_len(path_len) + 2;
 
        if ((mnt_call = malloc(call_len)) == NULL) {
                perror("malloc");



-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG



More information about the klibc mailing list