summaryrefslogtreecommitdiff
path: root/ssh-agent.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-04-02 21:03:51 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-04-02 21:03:51 +0000
commiteecdf235310bd3088acc547607452b657dd09f5a (patch)
tree948de5fd3ced877188287cad9f9c8a0fd220f269 /ssh-agent.c
parentf26ff5b9d86e77596ee1c049c58b0aac394876f3 (diff)
- markus@cvs.openbsd.org 2002/04/02 11:49:39
[ssh-agent.c] check $SHELL for -k and -d, too; http://bugzilla.mindrot.org/show_bug.cgi?id=199
Diffstat (limited to 'ssh-agent.c')
-rw-r--r--ssh-agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-agent.c b/ssh-agent.c
index f8183b400..ccce33c3c 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -34,7 +34,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-agent.c,v 1.84 2002/03/25 17:34:27 markus Exp $");
+RCSID("$OpenBSD: ssh-agent.c,v 1.85 2002/04/02 11:49:39 markus Exp $");
#if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H)
#include <sys/queue.h>
@@ -867,7 +867,7 @@ main(int ac, char **av)
if (ac > 0 && (c_flag || k_flag || s_flag || d_flag))
usage();
- if (ac == 0 && !c_flag && !k_flag && !s_flag && !d_flag) {
+ if (ac == 0 && !c_flag && !s_flag) {
shell = getenv("SHELL");
if (shell != NULL && strncmp(shell + strlen(shell) - 3, "csh", 3) == 0)
c_flag = 1;