summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ssh.c b/ssh.c
index 730ff382c..1d7582333 100644
--- a/ssh.c
+++ b/ssh.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: ssh.c,v 1.88 2001/02/04 15:32:26 stevesk Exp $"); 42RCSID("$OpenBSD: ssh.c,v 1.93 2001/02/08 19:30:52 itojun Exp $");
43 43
44#include <openssl/evp.h> 44#include <openssl/evp.h>
45#include <openssl/err.h> 45#include <openssl/err.h>
@@ -145,12 +145,12 @@ int subsystem_flag = 0;
145/* Prints a help message to the user. This function never returns. */ 145/* Prints a help message to the user. This function never returns. */
146 146
147void 147void
148usage() 148usage(void)
149{ 149{
150 fprintf(stderr, "Usage: %s [options] host [command]\n", __progname); 150 fprintf(stderr, "Usage: %s [options] host [command]\n", __progname);
151 fprintf(stderr, "Options:\n"); 151 fprintf(stderr, "Options:\n");
152 fprintf(stderr, " -l user Log in using this user name.\n"); 152 fprintf(stderr, " -l user Log in using this user name.\n");
153 fprintf(stderr, " -n Redirect input from /dev/null.\n"); 153 fprintf(stderr, " -n Redirect input from " _PATH_DEVNULL ".\n");
154 fprintf(stderr, " -A Enable authentication agent forwarding.\n"); 154 fprintf(stderr, " -A Enable authentication agent forwarding.\n");
155 fprintf(stderr, " -a Disable authentication agent forwarding.\n"); 155 fprintf(stderr, " -a Disable authentication agent forwarding.\n");
156#ifdef AFS 156#ifdef AFS
@@ -724,7 +724,7 @@ x11_get_proto(char *proto, int proto_len, char *data, int data_len)
724 724
725 if (options.xauth_location) { 725 if (options.xauth_location) {
726 /* Try to get Xauthority information for the display. */ 726 /* Try to get Xauthority information for the display. */
727 snprintf(line, sizeof line, "%.100s list %.200s 2>/dev/null", 727 snprintf(line, sizeof line, "%.100s list %.200s 2>" _PATH_DEVNULL,
728 options.xauth_location, getenv("DISPLAY")); 728 options.xauth_location, getenv("DISPLAY"));
729 f = popen(line, "r"); 729 f = popen(line, "r");
730 if (f && fgets(line, sizeof(line), f) && 730 if (f && fgets(line, sizeof(line), f) &&
@@ -1019,7 +1019,7 @@ ssh_session2(void)
1019 int in, out, err; 1019 int in, out, err;
1020 1020
1021 if (stdin_null_flag) { 1021 if (stdin_null_flag) {
1022 in = open("/dev/null", O_RDONLY); 1022 in = open(_PATH_DEVNULL, O_RDONLY);
1023 } else { 1023 } else {
1024 in = dup(STDIN_FILENO); 1024 in = dup(STDIN_FILENO);
1025 } 1025 }