[Bug 796611] Re: nfs-utils: kernel version handling leads to segv on short versions (x.y)
Andy Whitcroft
apw at canonical.com
Fri Jun 17 14:07:17 UTC 2011
We will make a decicision nearer release as to whether we will release
using 3.0 or 3.0.0, that is tracked as a release item therefore closing
out this specific issue against the kernel.
** Changed in: linux (Ubuntu Oneiric)
Status: Triaged => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/796611
Title:
nfs-utils: kernel version handling leads to segv on short versions
(x.y)
Status in “linux” package in Ubuntu:
Invalid
Status in “nfs-utils” package in Ubuntu:
Fix Released
Status in “linux” source package in Oneiric:
Invalid
Status in “nfs-utils” source package in Oneiric:
Fix Released
Bug description:
for example version "3.0" break mount.nfs, because this code catch
segfault on "3.0"
static inline unsigned int linux_version_code(void)
{
struct utsname my_utsname;
unsigned int p, q, r;
if (uname(&my_utsname))
return 0;
p = atoi(strtok(my_utsname.release, "."));
q = atoi(strtok(NULL, "."));
r = atoi(strtok(NULL, "."));
return MAKE_VERSION(p, q, r);
}
and this is very common hack, linux version always starts with three
numbers.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/796611/+subscriptions
More information about the foundations-bugs
mailing list