[klibc] [PATCH] fix root on nfs
H. Peter Anvin
hpa at zytor.com
Sat Aug 14 20:17:30 PDT 2004
Olaf Hering wrote:
> On Sat, Aug 14, Olaf Hering wrote:
>
>
>> On Mon, May 24, Olaf Hering wrote:
>>
>>
>>>this patch fixes root on nfs for me.
>>
>>Is there a reason why you did not apply this one?
>
>
> hmm, only the mount part is missing.
>
>
>
>>>diff -p -ppurN klibc-0.116/nfsmount/mount.c klibc-0.116.nfsmount/nfsmount/mount.c
>>>--- klibc-0.116/nfsmount/mount.c 2003-05-06 00:15:09.000000000 +0200
>>>+++ klibc-0.116.nfsmount/nfsmount/mount.c 2004-05-24 18:52:35.000000000 +0200
>>>@@ -77,9 +77,7 @@ static void get_ports(__u32 server, cons
>>>
>>> static inline int pad_len(int len)
>>> {
>>>- if (len % 8)
>>>- return (len & 7) + 8;
>>>- return len;
>>>+ return (len + 3) & ~3;
>>> }
>>>
>>> static inline void dump_params(__u32 server,
>>>
>
>
Are you sure it should be aligned to a 4-byte boundary rather than an
8-byte boundary?
-hpa
More information about the klibc
mailing list