]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/mountd.c
statd: Replace note() with xlog() in rpc.statd
[nfs-utils.git] / utils / mountd / mountd.c
index b59f939ee71154e2bd1ec3535c4d7987ea26e1db..888fd8c92b3da19a42e3964407c680415ccfbe89 100644 (file)
@@ -359,6 +359,11 @@ static void set_authflavors(struct mountres3_ok *ok, nfs_export *exp)
                flavors[i] = s->flav->fnum;
                i++;
        }
+       if (i == 0) {
+               /* default when there is no sec= option: */
+               i = 1;
+               flavors[0] = AUTH_UNIX;
+       }
        ok->auth_flavors.auth_flavors_val = flavors;
        ok->auth_flavors.auth_flavors_len = i;
 }