+Sat Aug 15 00:01:15 1998 Geoffrey King <gjking@mit.edu>
+
+ * krcp.c (error): Don't call rcmd_stream_write if iamremote is not
+ set, because it expects a valid file descriptor [krb5-appl/359].
+ Also, remove mistakenly duplicated comment above the function.
+
Mon Jul 27 00:06:20 1998 Geoffrey King <gjking@mit.edu>
* krlogin.c (main): Apply ghudson's patch so that rlogin -a
return (bp);
}
-
-
-/* This function is mostly vestigial, since under normal operation
- * the -x flag doesn't get set for the server process for encrypted
- * rcp. It only gets called by beta clients attempting user-to-user
- * authentication. */
void
#ifdef HAVE_STDARG_H
error(char *fmt, ...)
(void) vsprintf(cp, fmt, ap);
va_end(ap);
- (void) rcmd_stream_write(rem, buf, strlen(buf));
- if (iamremote == 0)
+ if (iamremote)
+ (void) rcmd_stream_write(rem, buf, strlen(buf));
+ else
(void) write(2, buf+1, strlen(buf+1));
}
#endif
-
-
/* This function is mostly vestigial, since under normal operation
* the -x flag doesn't get set for the server process for encrypted
* rcp. It only gets called by beta clients attempting user-to-user