From 32972ee57afecb3974480b2ea0c3eafdc05b5286 Mon Sep 17 00:00:00 2001 From: chip Date: Thu, 3 Jan 2002 00:21:22 +0000 Subject: [PATCH] (more of the previous change) --- support/export/nfsctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/support/export/nfsctl.c b/support/export/nfsctl.c index 19f6199..50e2c79 100644 --- a/support/export/nfsctl.c +++ b/support/export/nfsctl.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include "nfslib.h" @@ -92,6 +93,7 @@ expsetup(struct nfsctl_export *exparg, nfs_export *exp) if (exp->m_export.e_maptype != CLE_MAP_IDENT) { xlog(L_ERROR, "%s: unsupported mapping; kernel supports only 'identity' (default)", exp->m_export.m_path); + errno = EINVAL; return 0; } memset(exparg, 0, sizeof(*exparg)); -- 2.39.5