busybox: Make it possible to override LOGIN_FAIL_DELAY in CONFIG_EXTRA_CFLAGS
Signed-off-by: Peter Kümmel <syntheticpp@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
872e102386
commit
5305e1898f
32
package/busybox/busybox-0007-login-fail-delay.patch
Normal file
32
package/busybox/busybox-0007-login-fail-delay.patch
Normal file
|
@ -0,0 +1,32 @@
|
|||
From a6588fa10230e7b87990482773a445701abbaae8 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Peter=20K=C3=BCmmel?= <syntheticpp@gmx.net>
|
||||
Date: Mon, 22 Dec 2014 01:55:54 +0100
|
||||
Subject: [PATCH 1/1] Make it possible to override LOGIN_FAIL_DELAY in
|
||||
CONFIG_EXTRA_CFLAGS
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Peter Kümmel <syntheticpp@gmx.net>
|
||||
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
|
||||
---
|
||||
include/libbb.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/include/libbb.h b/include/libbb.h
|
||||
index 8e8b9ca..68a7cf0 100644
|
||||
--- a/include/libbb.h
|
||||
+++ b/include/libbb.h
|
||||
@@ -1271,7 +1271,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
|
||||
|
Loading…
Reference in a new issue