diff options
author | ftrvxmtrx <ftrvxmtrx@gmail.com> | 2015-06-09 00:15:59 +0200 |
---|---|---|
committer | ftrvxmtrx <ftrvxmtrx@gmail.com> | 2015-06-09 00:15:59 +0200 |
commit | 0fc761bc845bd9795f05206e24621c0f5e76423e (patch) | |
tree | 2bad439a40d10f7970e167c138d36fbb50586ee8 /sys/src/cmd/unix/u9fs/authrhosts.c | |
parent | 7a95bef00e41cbab2d97f6392b221e6192335343 (diff) |
unix is BUGGERED. remove it
Diffstat (limited to 'sys/src/cmd/unix/u9fs/authrhosts.c')
-rw-r--r-- | sys/src/cmd/unix/u9fs/authrhosts.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/sys/src/cmd/unix/u9fs/authrhosts.c b/sys/src/cmd/unix/u9fs/authrhosts.c deleted file mode 100644 index de150850e..000000000 --- a/sys/src/cmd/unix/u9fs/authrhosts.c +++ /dev/null @@ -1,38 +0,0 @@ -#include <plan9.h> -#include <fcall.h> -#include <u9fs.h> - -/* - * return whether the user is authenticated. - * uses berkeley-style rhosts ``authentication''. - * this is only a good idea behind a firewall, - * where you trust your network, and even then - * not such a great idea. it's grandfathered. - */ - -static char* -rhostsauth(Fcall *rx, Fcall *tx) -{ - USED(rx); - USED(tx); - - return "u9fs rhostsauth: no authentication required"; -} - -static char* -rhostsattach(Fcall *rx, Fcall *tx) -{ - USED(tx); - - if(ruserok(remotehostname, 0, rx->uname, rx->uname) < 0){ - fprint(2, "ruserok(%s, %s) not okay\n", remotehostname, rx->uname); - return "u9fs: rhosts authentication failed"; - } - return 0; -} - -Auth authrhosts = { - "rhosts", - rhostsauth, - rhostsattach, -}; |