Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=f65a405f55dd6c3f1af7f1577acb712a0174c1cf

commit f65a405f55dd6c3f1af7f1577acb712a0174c1cf
Author: James Buren <[email protected]>
Date:   Wed May 1 04:19:17 2013 -0500

local: import definition for maximum length of a username
taken from shadow

diff --git a/src/local.h b/src/local.h
index 63530fd..808789c 100644
--- a/src/local.h
+++ b/src/local.h
@@ -45,6 +45,7 @@
#include <libgen.h>
#include <search.h>
#include <blkid.h>
+#include <utmpx.h>
#include "text.h"
#include "scanner.h"

@@ -57,6 +58,7 @@
#define SPACE_CHARS " \t\r\n\v\f"
#define LOWER_CHARS "abcdefghijklmnopqrstuvwxyz"
#define TEXT_MAX 8192
+#define USER_NAME_MAX (sizeof(((struct utmpx *)NULL)->ut_user))
#define KIBIBYTE (1LL << 10LL)
#define MEBIBYTE (1LL << 20LL)
#define GIBIBYTE (1LL << 30LL)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to