diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2008-02-20 15:25:27 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2008-02-20 15:25:27 +0000 |
commit | 9fc63ce626699595be03a5f07011ce64ee4b0e95 (patch) | |
tree | 60c033d490999a1e7a1b0613b595218d5287bf41 /usr.bin/ssh/session.c | |
parent | 0403ff10083f7a4a78c535e7cc7f455e77e99b29 (diff) |
correct boolean encoding for coredump; der Mouse via dugsong
Diffstat (limited to 'usr.bin/ssh/session.c')
-rw-r--r-- | usr.bin/ssh/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c index b08f2add25b..31ad05578a0 100644 --- a/usr.bin/ssh/session.c +++ b/usr.bin/ssh/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.228 2008/02/13 22:38:17 djm Exp $ */ +/* $OpenBSD: session.c,v 1.229 2008/02/20 15:25:26 markus Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved @@ -1845,7 +1845,7 @@ session_exit_message(Session *s, int status) } else if (WIFSIGNALED(status)) { channel_request_start(s->chanid, "exit-signal", 0); packet_put_cstring(sig2name(WTERMSIG(status))); - packet_put_char(WCOREDUMP(status)); + packet_put_char(WCOREDUMP(status)? 1 : 0); packet_put_cstring(""); packet_put_cstring(""); packet_send(); |