dropbear: fix build time warning
authorKonstantin Demin <rockdrilla@gmail.com>
Tue, 16 Oct 2018 13:31:33 +0000 (16:31 +0300)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 8 Nov 2018 10:07:05 +0000 (11:07 +0100)
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 <rockdrilla@gmail.com>
package/network/services/dropbear/patches/002-endif-warning.patch [new file with mode: 0644]

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 (file)
index 0000000..c3b515a
--- /dev/null
@@ -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))