]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/cache.c
Imported Debian patch 1.0.10-5
[nfs-utils.git] / utils / mountd / cache.c
index c57d3b0a326a16adf01c4ee9b083f01df470fab3..0296f4efd19f187ea20bcfcf1d785e8a05f29bc3 100644 (file)
@@ -381,6 +381,12 @@ void cache_export(nfs_export *exp)
 {
        FILE *f;
 
+       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);
+               return;
+       }
+
        f = fopen("/proc/net/rpc/auth.unix.ip/channel", "w");
        if (!f)
                return;