From: chip Date: Thu, 3 Jan 2002 00:21:22 +0000 (+0000) Subject: (more of the previous change) X-Git-Tag: nfs-utils-1-0-1-pre1~2 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=32972ee57afecb3974480b2ea0c3eafdc05b5286;p=nfs-utils.git (more of the previous change) --- 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));