diff options
author | Luk Claes <luk@debian.org> | 2011-07-12 10:38:03 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-07-12 10:39:02 -0400 |
commit | 0062bea7159b3c7516d4d361ef1244d727231936 (patch) | |
tree | a1e35259477521fffe7a8bb343d3a1abf1a7672b /support/misc/tcpwrapper.c | |
parent | c4c6126f05713afe46c0e99647d7a07dd1fc2ebb (diff) | |
download | nfs-utils-0062bea7159b3c7516d4d361ef1244d727231936.tar.gz nfs-utils-0062bea7159b3c7516d4d361ef1244d727231936.tar.xz nfs-utils-0062bea7159b3c7516d4d361ef1244d727231936.zip |
mount.nfs: Do not segfault because of kernel version
mount.nfs segfaults if kernel version number does not contain
at least 3 components delimited with a dot.
Avoid this by matching up to three unsigned integers inialised
to zero, separated by dots.
A version that does not start with an integer is probably a future
version where the versioning evolved to another scheme.
Return UINT_MAX which is guaranteed to be higher than existing
versions. This would also make it possible to easily identify
versions that do not start with an integer.
Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/misc/tcpwrapper.c')
0 files changed, 0 insertions, 0 deletions