[BusyBox] my_getpw(u/g)id
Vladimir N. Oleynik
dzo at simtreas.ru
Mon Aug 30 12:59:42 UTC 2004
Tito,
> I looked on google a half night to find some standard value but
> the only notice I've found was in man sysconf:
>
> LOGIN_NAME_MAX - _SC_LOGIN_NAME_MAX
> Maximum length of a login name, including the final NUL. Must
> not be less than _POSIX_LOGIN_NAME_MAX (9).
>
> So there is a minimum of 9 but no maximum set.
I think, for minimalistic system as busybox, 9 - best for support only.
> The other occurrences of my_getpw(u/g)id() look ok to me as they
> work with buffers of different sizes:
> 128 in logger.c
> 32 in tar.c
But, the tar format have byte-count specification
/usr/include/tar.h
uid and gid must have 8 chars (spacefill).
Is not, its not "tar" :-P
> BTW: while working on id I missed a feature in bb_getopt_ulflags:
> It would be nice if we could set a rule to say:
>
> switch x never used alone
Hmm. May be use not from getopt? ;-)
> also some rule to override ~ would be nice like:
> n~r no
> gnr yes
Strange syntax. ;-)
--w
vodz
More information about the busybox
mailing list