Bug in sys.c (2.1.33)

Pavel Machek (pavel@atrey.karlin.mff.cuni.cz)
Fri, 11 Apr 1997 14:46:07 +0200 (MET DST)


Hi!

Someone did something with kernel/sys.c, and there's obvious bug there.

+ error -= __put_user(0,name->version+__OLD_UTS_LEN);
+ error -=__copy_to_user(&name->machine,&system_utsname.machine,__OLD_UTS_LEN);
+ error = __put_user(0,name->machine+__OLD_UTS_LEN);
~~~~ note - missing here.
error = error ? -EFAULT : 0;

I only see the bug but do not understand code. I ask person who made the
patch to fix it.
Pavel

--
This is my little buggy signature...				Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+