Menu

#95 Linux kernel version string changed in 3.0

closed
nobody
None
5
2012-11-02
2011-08-12
No

Description: /src/base/init/init.c in function version_init (line 278) makes a wrong assumption that the kernel string is X.Y.Z. That was historicallly true, but 3.0, doesn't have the Z, so strtok returns a NULL pointer making atoi fail and dosemu segfault.

Discussion

  • Bojan Popovic

    Bojan Popovic - 2011-08-12

    A very simple patch to solve the problem.

     
  • Bart Oldeman

    Bart Oldeman - 2011-08-13

    Thanks, applied!

    Somehow I had the impression that the 3.0 kernel would still report 3.0.0 in uname, because that's what I have.
    In any case your patch doesn't hurt so I applied it.

     

Log in to post a comment.

MongoDB Logo MongoDB