* [Buildroot] [PATCH 1/1] busybox: make LOGIN_FAIL_DELAY configurable
@ 2014-12-20 14:22 Peter Kümmel
2014-12-20 14:58 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Peter Kümmel @ 2014-12-20 14:22 UTC (permalink / raw)
To: buildroot
Pass LOGIN_FAIL_DELAY=<seconds> in busybox's CONFIG_EXTRA_CFLAGS
to change default delay of 3 seconds.
Signed-off-by: Peter K?mmel <syntheticpp@gmx.net>
---
.../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?= <syntheticpp@gmx.net>
+Date: Sat, 20 Dec 2014 14:35:56 +0100
+Subject: [PATCH] make LOGIN_FAIL_DELAY configurable
+
+Pass LOGIN_FAIL_DELAY=<seconds> 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
+
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] busybox: make LOGIN_FAIL_DELAY configurable
2014-12-20 14:22 [Buildroot] [PATCH 1/1] busybox: make LOGIN_FAIL_DELAY configurable Peter Kümmel
@ 2014-12-20 14:58 ` Thomas Petazzoni
2014-12-20 15:14 ` Peter Kümmel
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2014-12-20 14:58 UTC (permalink / raw)
To: buildroot
Dear Peter K?mmel,
On Sat, 20 Dec 2014 15:22:12 +0100, Peter K?mmel wrote:
> Pass LOGIN_FAIL_DELAY=<seconds> in busybox's CONFIG_EXTRA_CFLAGS
> to change default delay of 3 seconds.
>
> Signed-off-by: Peter K?mmel <syntheticpp@gmx.net>
> ---
> .../busybox/busybox-0007-login-fail-delay.patch | 28 ++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
> create mode 100644 package/busybox/busybox-0007-login-fail-delay.patch
Even though the patch is small, it is in a way a "feature" patch: do
something that the upstream Busybox doesn't allow to do. Could you
instead submit this patch upstream, and once it gets accepted, backport
it into Buildroot?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] busybox: make LOGIN_FAIL_DELAY configurable
2014-12-20 14:58 ` Thomas Petazzoni
@ 2014-12-20 15:14 ` Peter Kümmel
0 siblings, 0 replies; 3+ messages in thread
From: Peter Kümmel @ 2014-12-20 15:14 UTC (permalink / raw)
To: buildroot
Am 20.12.2014 um 15:58 schrieb Thomas Petazzoni:
> Dear Peter K?mmel,
>
> On Sat, 20 Dec 2014 15:22:12 +0100, Peter K?mmel wrote:
>> Pass LOGIN_FAIL_DELAY=<seconds> in busybox's CONFIG_EXTRA_CFLAGS
>> to change default delay of 3 seconds.
>>
>> Signed-off-by: Peter K?mmel <syntheticpp@gmx.net>
>> ---
>> .../busybox/busybox-0007-login-fail-delay.patch | 28 ++++++++++++++++++++++
>> 1 file changed, 28 insertions(+)
>> create mode 100644 package/busybox/busybox-0007-login-fail-delay.patch
>
> Even though the patch is small, it is in a way a "feature" patch: do
> something that the upstream Busybox doesn't allow to do. Could you
> instead submit this patch upstream, and once it gets accepted, backport
> it into Buildroot?
>
> Thanks,
>
> Thomas
>
OK, pushed it to the busybox ml.
pk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-20 15:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-20 14:22 [Buildroot] [PATCH 1/1] busybox: make LOGIN_FAIL_DELAY configurable Peter Kümmel
2014-12-20 14:58 ` Thomas Petazzoni
2014-12-20 15:14 ` Peter Kümmel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox