return better errorcodes
[util-vserver.git] / util-vserver / lib / syscall_setflags-v13.hc
index 92a3a80..c400c28 100644 (file)
@@ -27,7 +27,7 @@ vc_set_flags_v13(xid_t xid, struct vc_ctx_flags const *flags)
   struct vcmd_ctx_flags_v0     k_flags;
 
   if (flags==0) {
-    errno = EINVAL;
+    errno = EFAULT;
     return -1;
   }