Return 0 on any error, older kernels will return -EPERM for unknown syscalls.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Sat, 20 Jan 2007 13:55:42 +0000 (13:55 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Sat, 20 Jan 2007 13:55:42 +0000 (13:55 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2464 94cd875c-1c1d-0410-91d2-eb244daf1a30

lib/checkconfig.c

index 8c3f696..0e073e1 100644 (file)
@@ -34,7 +34,7 @@ utilvserver_checkCompatConfig()
   if (res==0) {
     res     = vc_get_vci();
     v_errno = errno;
-    if (res==(uint32_t)-1 && (errno==ENOSYS || errno==EINVAL)) res=0;
+    if (res==(uint32_t)-1) res=0;
   }
 
   errno = v_errno;