X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=support%2Fexport%2Fnfsctl.c;fp=support%2Fexport%2Fnfsctl.c;h=50e2c7953a9db18906c0caf80df382ca323dc623;hp=19f6199f6737a692fe2e1e957e1f17a9ab3eca22;hb=32972ee57afecb3974480b2ea0c3eafdc05b5286;hpb=7a1b307cfbdbb2364274252b21094d9f2207342b 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));