1 diff -aur ncpfs-2.2.6.org/sutil/ncpm_common.c ncpfs-2.2.6/sutil/ncpm_common.c
2 --- ncpfs-2.2.6.org/sutil/ncpm_common.c 2011-08-23 16:45:11.000000000 +0200
3 +++ ncpfs-2.2.6/sutil/ncpm_common.c 2011-08-23 16:52:26.049972551 +0200
6 static int getmountver(void) {
9 + int maj = 0, mid = 0, rev = 0;
13 errexit(1, _("Cannot get kernel release\n"));
15 - if (sscanf(name.release, "%d.%d.%d", &maj, &mid, &rev) != 3) {
16 + if (sscanf(name.release, "%d.%d-ARCH", &maj, &mid) != 2) {
17 errexit(2, _("Cannot convert kernel release \"%s\" to number\n"), name.release);
19 ver = maj*0x10000 + mid*0x100 + rev;