diff options
| author | chip <chip> | 2002-01-03 00:21:22 +0000 |
|---|---|---|
| committer | chip <chip> | 2002-01-03 00:21:22 +0000 |
| commit | 32972ee57afecb3974480b2ea0c3eafdc05b5286 (patch) | |
| tree | bb0ad4028a7e5aa644b4292aa21896765081ccde | |
| parent | 7a1b307cfbdbb2364274252b21094d9f2207342b (diff) | |
| download | nfs-utils-32972ee57afecb3974480b2ea0c3eafdc05b5286.tar.gz nfs-utils-32972ee57afecb3974480b2ea0c3eafdc05b5286.tar.xz nfs-utils-32972ee57afecb3974480b2ea0c3eafdc05b5286.zip | |
(more of the previous change)
| -rw-r--r-- | support/export/nfsctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <sys/stat.h> #include <stdlib.h> +#include <errno.h> #include <string.h> #include <ctype.h> #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)); |
