[PATCH] namespaces: utsname: switch to using uts namespaces
[linux-2.6.git] / arch / x86_64 / kernel / sys_x86_64.c
index 6449ea8..76bf7c2 100644 (file)
@@ -148,7 +148,7 @@ asmlinkage long sys_uname(struct new_utsname __user * name)
 {
        int err;
        down_read(&uts_sem);
-       err = copy_to_user(name, &system_utsname, sizeof (*name));
+       err = copy_to_user(name, utsname(), sizeof (*name));
        up_read(&uts_sem);
        if (personality(current->personality) == PER_LINUX32) 
                err |= copy_to_user(&name->machine, "i686", 5);