aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--applets/applet_tables.c4
-rw-r--r--libbb/die_if_bad_username.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/applets/applet_tables.c b/applets/applet_tables.c
index ce2037440..7ba929b12 100644
--- a/applets/applet_tables.c
+++ b/applets/applet_tables.c
@@ -20,6 +20,10 @@
20#undef ARRAY_SIZE 20#undef ARRAY_SIZE
21#define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0]))) 21#define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0])))
22 22
23#ifndef PATH_MAX
24#define PATH_MAX 1024
25#endif
26
23#include "../include/autoconf.h" 27#include "../include/autoconf.h"
24#include "../include/applet_metadata.h" 28#include "../include/applet_metadata.h"
25 29
diff --git a/libbb/die_if_bad_username.c b/libbb/die_if_bad_username.c
index e5e1160c4..d05dc74c5 100644
--- a/libbb/die_if_bad_username.c
+++ b/libbb/die_if_bad_username.c
@@ -8,6 +8,10 @@
8 */ 8 */
9#include "libbb.h" 9#include "libbb.h"
10 10
11#ifndef LOGIN_NAME_MAX
12#define LOGIN_NAME_MAX 256
13#endif
14
11/* To avoid problems, the username should consist only of 15/* To avoid problems, the username should consist only of
12 * letters, digits, underscores, periods, at signs and dashes, 16 * letters, digits, underscores, periods, at signs and dashes,
13 * and not start with a dash (as defined by IEEE Std 1003.1-2001). 17 * and not start with a dash (as defined by IEEE Std 1003.1-2001).