Fix build issue with svr-chansession.c

Claude Bing cbing at cybernetics.com
Thu Dec 27 01:39:31 AWST 2018


When building dropbear with the following configuration options, a
compilation error occurs.  Note that the most important option in
localoptions.h is DROPBEAR_SVR_PUBKEY_AUTH = 0.

---
localoptions.h:

#define INETD_MODE 0
#define DROPBEAR_X11FWD 0
#define DROPBEAR_CLI_LOCALTCPFWD 0
#define DROPBEAR_CLI_REMOTETCPFWD 0
#define DROPBEAR_SVR_LOCALTCPFWD 0
#define DROPBEAR_SVR_REMOTETCPFWD 0
#define DROPBEAR_SVR_AGENTFWD 0
#define DROPBEAR_CLI_AGENTFWD 0
#define DROPBEAR_CLI_PROXYCMD 0
#define DROPBEAR_CLI_NETCAT 0
#define DROPBEAR_USER_ALGO_LIST 0
#define DROPBEAR_SVR_PUBKEY_AUTH 0
#define MAX_AUTH_TRIES 5
#define DROPBEAR_SFTPSERVER 0

---
Build output:

svr-chansession.c: In function ‘sessioncommand’:
svr-chansession.c:682: error: ‘struct ChanSess’ has no member named
‘original_command’
---

This is fixed with the attached patch, which adds a missing #if...#endif.

-- 
Regards,

Claude Bing
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_no_member_named_original_command.diff
Type: text/x-patch
Size: 448 bytes
Desc: not available
Url : https://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20181226/46f6c7aa/attachment.bin 


More information about the Dropbear mailing list