From patchwork Sat Dec 20 14:22:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_K=C3=BCmmel?= X-Patchwork-Id: 423069 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 35AF8140082 for ; Sun, 21 Dec 2014 01:22:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 19FE1956A5; Sat, 20 Dec 2014 14:22:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7bUlPEjls5Fx; Sat, 20 Dec 2014 14:22:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 4DEB59568F; Sat, 20 Dec 2014 14:22:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 584EF1BFA4B for ; Sat, 20 Dec 2014 14:22:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 56790A2544 for ; Sat, 20 Dec 2014 14:22:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Wu32M1DmQYGO for ; Sat, 20 Dec 2014 14:22:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 6EC7FA232C for ; Sat, 20 Dec 2014 14:22:26 +0000 (UTC) Received: from xmint.fritz.box ([79.242.43.13]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MX16a-1YNLqs41Iq-00VvSo; Sat, 20 Dec 2014 15:22:23 +0100 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= To: buildroot@buildroot.org Date: Sat, 20 Dec 2014 15:22:12 +0100 Message-Id: <1419085332-379-1-git-send-email-syntheticpp@gmx.net> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Provags-ID: V03:K0:l8D1QA36kuo4S709oe0/Wsjy1sKWZLrPd5RGxePnwxNBfDIe9HY FyVO7u0GIgM5JaKmb2lhYfURuKB55/mThvSEZ4BpA+jqSSHeSnfXh1JRM3hhiDjqY7xgBHl noxMU9I0pVsPXvvsTEIdSTvUg5YJecBm2w30VKaeTnDYtDmpqgTzd8nfs68wVFcFG0Y9u5P FJz54lTpx859lXwcOngCw== X-UI-Out-Filterresults: notjunk:1; Subject: [Buildroot] [PATCH 1/1] busybox: make LOGIN_FAIL_DELAY configurable X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Pass LOGIN_FAIL_DELAY= in busybox's CONFIG_EXTRA_CFLAGS to change default delay of 3 seconds. Signed-off-by: Peter Kümmel --- .../busybox/busybox-0007-login-fail-delay.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 package/busybox/busybox-0007-login-fail-delay.patch diff --git a/package/busybox/busybox-0007-login-fail-delay.patch b/package/busybox/busybox-0007-login-fail-delay.patch new file mode 100644 index 0000000..158088d --- /dev/null +++ b/package/busybox/busybox-0007-login-fail-delay.patch @@ -0,0 +1,28 @@ +From 782002e319d01aba1ddf77419ace633998320866 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Peter=20K=C3=BCmmel?= +Date: Sat, 20 Dec 2014 14:35:56 +0100 +Subject: [PATCH] make LOGIN_FAIL_DELAY configurable + +Pass LOGIN_FAIL_DELAY= in busybox's CONFIG_EXTRA_CFLAGS +to change default delay of 3 seconds. +--- + include/libbb.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/include/libbb.h b/include/libbb.h +index 64167bb..60c7013 100644 +--- a/include/libbb.h ++++ b/include/libbb.h +@@ -1252,7 +1252,9 @@ char *bb_simplify_path(const char *path) FAST_FUNC; + /* Returns ptr to NUL */ + char *bb_simplify_abs_path_inplace(char *path) FAST_FUNC; + ++#ifndef LOGIN_FAIL_DELAY + #define LOGIN_FAIL_DELAY 3 ++#endif + extern void bb_do_delay(int seconds) FAST_FUNC; + extern void change_identity(const struct passwd *pw) FAST_FUNC; + extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) NORETURN FAST_FUNC; +-- +1.9.1 +