summaryrefslogtreecommitdiff
path: root/lib/userspec.c
AgeCommit message (Collapse)Author
2000-09-09Don't use atoi.Jim Meyering
Include sys/param.h and limits.h. Include xstrtol.h. (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define. (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define. (parse_user_spec): Use xstrtoul, not atoi when converting numeric UID, GID. Check range.
2000-08-07(same_name): Invoke xalloc_die instead of printing our own message.Jim Meyering
(parse_user_spec): Don't translate a message until just before returning, to avoid unnecessary translation.
2000-02-27(parse_user_spec): If there is no `:' but there is a `.',Jim Meyering
then first look up the entire `.'-containing string as a login name.
2000-02-12<libintl.h>: Include.Jim Meyering
(_ and N_): Define. (parse_user_spec): Mark translatable strings.
2000-02-12add FIXME comments for use of atoiJim Meyering
2000-02-12(ISDIGIT): Define it.Jim Meyering
(isdigit): Remove definition. (is_number): Use ISDIGIT, not isdigit.
1998-12-19break long lineJim Meyering
1998-12-19break long lineJim Meyering
1998-12-07ansideclifyJim Meyering
1998-05-10Don't declare strdup if it's defined as a macro.Jim Meyering
Reported by Lorne Baker.
1998-03-15Use #if, not #ifdef with HAVE_ macrosJim Meyering
1998-03-10(parse_user_spec) [__DJGPP__]: Make function knowJim Meyering
about any arbitrary user and group by pretending to be the user and to belong to the group specified in `spec_arg' argument.
1997-07-06Change some #ifdef to #if.Jim Meyering
Indent a cpp directive.
1996-07-15update FSF address in copyrightJim Meyering
1995-10-18[HAVE_ENDGRENT]: Define away endgrent.Jim Meyering
[HAVE_ENDPWENT]: Define away endpwent.
1995-08-05(isnumber): Rename to is_number.Jim Meyering
(parse_user_spec): Rename uses, too.
1995-05-13(parse_user_spec): Use strchr, not index.Jim Meyering
[!HAVE_STRING_H]: Define strchr in terms of index, not the other way around.
1994-10-02merge with 3.9hJim Meyering
1994-07-01(main): Change #ifdef TESTING to TEST.Jim Meyering
1994-07-01Include alloca directives.Jim Meyering
Replace 3 lines with V_STRDUP equivalent.
1994-07-01Rewrite.Jim Meyering
1994-03-14.Jim Meyering
1994-03-14.Jim Meyering
1993-10-26merge with 3.9aJim Meyering
1993-10-12merge with 3.8.4cJim Meyering
1993-10-06merge with 3.8.3bJim Meyering
1993-04-05* system.h [rindex, incl, bcopy, bzero]: Ditto.Jim Meyering
* userspec.c [index]: Ditto.
1992-10-31Initial revisionJim Meyering