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:
parent
40733239a7
commit
06c8aec38c
|
@ -7,6 +7,10 @@
|
||||||
#include "c.h"
|
#include "c.h"
|
||||||
#include "idcache.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 *get_id(struct idcache *ic, unsigned long int id)
|
||||||
{
|
{
|
||||||
struct identry *ent;
|
struct identry *ent;
|
||||||
|
|
|
@ -44,10 +44,6 @@
|
||||||
#define MAXSYMLINKS 256
|
#define MAXSYMLINKS 256
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LOGIN_NAME_MAX
|
|
||||||
#define LOGIN_NAME_MAX 256
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define NAMEI_NOLINKS (1 << 1)
|
#define NAMEI_NOLINKS (1 << 1)
|
||||||
#define NAMEI_MODES (1 << 2)
|
#define NAMEI_MODES (1 << 2)
|
||||||
#define NAMEI_MNTS (1 << 3)
|
#define NAMEI_MNTS (1 << 3)
|
||||||
|
|
Loading…
Reference in New Issue