summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs/windows-NT/rcmd.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1998-02-22 08:23:05 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1998-02-22 08:23:05 +0000
commit8996000ce3abfb3bf3ba9371f93dbb36605526e6 (patch)
tree18978064e57450121f0e4877713ae12ee2980e3e /gnu/usr.bin/cvs/windows-NT/rcmd.c
parent8b617ad77948342faf0917e268e4d001047fec35 (diff)
Latest version from Cyclic
Diffstat (limited to 'gnu/usr.bin/cvs/windows-NT/rcmd.c')
-rw-r--r--gnu/usr.bin/cvs/windows-NT/rcmd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gnu/usr.bin/cvs/windows-NT/rcmd.c b/gnu/usr.bin/cvs/windows-NT/rcmd.c
index 3a45b625623..8437e3cd438 100644
--- a/gnu/usr.bin/cvs/windows-NT/rcmd.c
+++ b/gnu/usr.bin/cvs/windows-NT/rcmd.c
@@ -12,6 +12,9 @@
Jim Blandy <jimb@cyclic.com> --- August 1995 */
+#include "cvs.h"
+#include "rcmd.h"
+
#include <io.h>
#include <fcntl.h>
#include <malloc.h>
@@ -39,9 +42,6 @@
#include <stdio.h>
#include <assert.h>
-#include "cvs.h"
-#include "rcmd.h"
-
/* The rest of this file contains the rcmd() code, which is used
only by START_SERVER. The idea for a long-term direction is
that this code can be made portable (by using SOCK_ERRNO and
@@ -167,6 +167,11 @@ rcmd_authenticate (int fd, char *locuser, char *remuser, char *command)
}
if (c != '\0')
{
+ /* All the junk with USER, LOGNAME, GetUserName, &c, is so
+ confusing that we better give some clue as to what sort
+ of user name we decided on. */
+ error (0, 0, "cannot log in as local user '%s', remote user '%s'",
+ locuser, remuser);
error (1, 0, "Permission denied by rshd");
}
}