From: Konstantin Demin Date: Tue, 16 Oct 2018 13:31:33 +0000 (+0300) Subject: dropbear: fix build time warning X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=4b04c8d33968a6723ff76d17076155d1c1049b25;p=openwrt%2Fstaging%2Fdedeckeh.git dropbear: fix build time warning compiler complains in build log: svr-auth.c: In function 'checkusername': svr-auth.c:315:8: warning: extra tokens at end of #endif directive [-Wendif-labels] #endif HAVE_GETGROUPLIST ^~~~~~~~~~~~~~~~~ while this warning is harmless, let's fix it. cherry-pick upstream commit 1ae4237920c3bd7f2fa6958d2a390f6693852285 Signed-off-by: Konstantin Demin --- diff --git a/package/network/services/dropbear/patches/002-endif-warning.patch b/package/network/services/dropbear/patches/002-endif-warning.patch new file mode 100644 index 0000000000..c3b515a3b1 --- /dev/null +++ b/package/network/services/dropbear/patches/002-endif-warning.patch @@ -0,0 +1,11 @@ +--- a/svr-auth.c ++++ b/svr-auth.c +@@ -312,7 +312,7 @@ static int checkusername(const char *use + return DROPBEAR_FAILURE; + } + } +-#endif HAVE_GETGROUPLIST ++#endif /* HAVE_GETGROUPLIST */ + + TRACE(("shell is %s", ses.authstate.pw_shell)) +