commit fdbcec44c651d797db81419cdc50f90a34fdecba
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   2026-08-21 13:12:40 +0200

    Toss out BSD rhost-"auth"

diff --git a/makefile b/makefile
index 7cc6d5d..57b0bb3 100644
--- a/makefile
+++ b/makefile
@@ -23,7 +23,6 @@ DESTROOT=/usr/local
 
 OFILES=\
 	authnone.o\
-	authrhosts.o\
 	authp9any.o\
 	convD2M.o\
 	convM2D.o\
diff --git a/u9fs.c b/u9fs.c
index 357edcc..1586c9b 100644
--- a/u9fs.c
+++ b/u9fs.c
@@ -152,9 +152,8 @@ char*	root;
 User*	none;
 
 Auth *authmethods[] = {	/* first is default */
-	&authrhosts,
-	&authp9any,
 	&authnone,
+	&authp9any,
 };
 
 Auth *auth;
diff --git a/u9fs.h b/u9fs.h
index f47db51..9abf0c5 100644
--- a/u9fs.h
+++ b/u9fs.h
@@ -15,7 +15,6 @@ extern char Eauth[];
 extern char *autharg;
 
 extern Auth authp9any;
-extern Auth authrhosts;
 extern Auth authnone;
 
 extern ulong truerand(void);
diff --git a/u9fs.man b/u9fs.man
index f253d8f..bbaa01a 100644
--- a/u9fs.man
+++ b/u9fs.man
@@ -85,22 +85,12 @@ with
 Sets the authentication method to be used.
 .I Authtype
 should be
-.BR rhosts ,
 .BR none ,
 or
 .BR p9any .
 The default is
-.BR rhosts ,
-which uses the
-.I ruserok
-library call to authenticate users by entries in
-.B /etc/hosts.equiv
-or
-.BR $HOME/.rhosts .
-This default is discouraged for all but the most controlled networks.
-Specifying
 .B none
-turns off authentication altogether.
+which turns off authentication altogether.
 This is useful when
 .I u9fs
 is not invoked from
