summaryrefslogtreecommitdiff
path: root/svr-chansession.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2008-01-13 04:02:08 +0000
committerMatt Johnston <matt@ucc.asn.au>2008-01-13 04:02:08 +0000
commite277059339844d7f7dc45743fc45109a86d17218 (patch)
tree8b44ee18e7a97a541549b8f85823e40cc68025bc /svr-chansession.c
parenta3b5d3c8b341cfc54d0d0526fdfd31fcf13f5c61 (diff)
downloaddropbear-e277059339844d7f7dc45743fc45109a86d17218.tar.gz
fix up after merge
--HG-- extra : convert_revision : 6107b89c1188975d0c60f50621afe593cb6e554f
Diffstat (limited to 'svr-chansession.c')
-rw-r--r--svr-chansession.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-chansession.c b/svr-chansession.c
index da3fe8d..7cedb8e 100644
--- a/svr-chansession.c
+++ b/svr-chansession.c
@@ -799,10 +799,10 @@ static int ptycommand(struct Channel *channel, struct ChanSess *chansess) {
/* don't show the motd if ~/.hushlogin exists */
/* 12 == strlen("/.hushlogin\0") */
- len = strlen(ses.authstate.pw->pw_dir) + 12;
+ len = strlen(ses.authstate.pw_dir) + 12;
hushpath = m_malloc(len);
- snprintf(hushpath, len, "%s/.hushlogin", ses.authstate.pw->pw_dir);
+ snprintf(hushpath, len, "%s/.hushlogin", ses.authstate.pw_dir);
if (stat(hushpath, &sb) < 0) {
/* more than a screenful is stupid IMHO */