lib: define LOGIN_NAME_MAX fallback

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

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
Ruediger Meier 2016-02-07 14:10:27 +01:00
parent 40733239a7
commit 06c8aec38c
2 changed files with 4 additions and 4 deletions

View 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;

View File

@ -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)