From 2bb2b04e91749adc71039ede55d7cf14632e9a7a Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Mon, 10 Jul 2000 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 2000-07-10 --- port/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/auth.c b/port/auth.c index 3cd0edf22497a85639b5bf6a1e9465a020683bc0..e35db7d2848f6c110a2c7ec57a88227e92d81754 100644 --- a/port/auth.c +++ b/port/auth.c @@ -600,7 +600,7 @@ userwrite(char *a, int n) { if(n >= NAMELEN) error(Ebadarg); - if(strcmp(a, "none") != 0) + if(!iseve() || strcmp(a, "none") != 0) error(Eperm); memset(up->user, 0, NAMELEN); strcpy(up->user, "none");