]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib: define LOGIN_NAME_MAX fallback
authorRuediger Meier <ruediger.meier@ga-group.nl>
Sun, 7 Feb 2016 13:10:27 +0000 (14:10 +0100)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 18 Feb 2016 15:54:14 +0000 (16:54 +0100)
LOGIN_NAME_MAX was unused in misc-utils/namei.c since 04a5cb58.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
lib/idcache.c
misc-utils/namei.c

index 4cb20fd2d88269a771ee8996b4e611393a4ad51d..3c358b8a893f4400c17004959db8b1f01e9da4c0 100644 (file)
@@ -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;
index 576e3ef867ddc604f83ada4dbca34c5439a08c52..df678e003879b7ae3f006469d926bb6f8aef7fb7 100644 (file)
 #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)