[PATCH 08/15] lib: define LOGIN_NAME_MAX fallback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>

LOGIN_NAME_MAX was unused in misc-utils/namei.c since 04a5cb58.

Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>
---
 lib/idcache.c      | 4 ++++
 misc-utils/namei.c | 4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/idcache.c b/lib/idcache.c
index 4cb20fd..3c358b8 100644
--- a/lib/idcache.c
+++ b/lib/idcache.c
@@ -7,6 +7,10 @@
 #include "c.h"
 #include "idcache.h"
 
+#ifndef LOGIN_NAME_MAX
+#define LOGIN_NAME_MAX 256
+#endif
+
 struct identry *get_id(struct idcache *ic, unsigned long int id)
 {
 	struct identry *ent;
diff --git a/misc-utils/namei.c b/misc-utils/namei.c
index 576e3ef..df678e0 100644
--- a/misc-utils/namei.c
+++ b/misc-utils/namei.c
@@ -44,10 +44,6 @@
 #define MAXSYMLINKS 256
 #endif
 
-#ifndef LOGIN_NAME_MAX
-#define LOGIN_NAME_MAX 256
-#endif
-
 #define NAMEI_NOLINKS	(1 << 1)
 #define NAMEI_MODES	(1 << 2)
 #define NAMEI_MNTS	(1 << 3)
-- 
1.8.4.5

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux