Age | Commit message (Collapse) | Author | |
---|---|---|---|
2005-09-22 | Sync from gnulib. | Paul Eggert | |
2005-07-02 | Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally. | Jim Meyering | |
2005-05-30 | (getpwnam, getgrnam, getgrgid) | Paul Eggert | |
[!defined _POSIX_VERSION]: Remove decls; not needed these days. | |||
2005-05-14 | Update FSF postal mail address. | Jim Meyering | |
2005-03-09 | Include intprops.h. | Paul Eggert | |
(TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove. | |||
2004-10-05 | Rename xclone to xmemdup. Remove obsolete xalloc macros. | Paul Eggert | |
Remove xstrdup.c and move xstrdup implementation to xmalloc.c. | |||
2004-08-19 | Don't use <alloca.h>, so that we don't use alloca on | Paul Eggert | |
strings on unbounded length. alloca's performance benefits aren't that important here. (V_STRDUP): Remove. (parse_with_separator): New function, with most of the internals of the old parse_user_spec. Allow user to omit both user and group, for compatibility with FreeBSD. Clone only the user name, not the entire spec. Do not set *uid, *gid unless entirely successful. Avoid memory leak in some failing cases. Fix regression for USER.GROUP reported by Dmitry V. Levin in <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html> (parse_user_spec): Rewrite to use parse_with_separator. | |||
2004-08-09 | Remove dependency of xalloc on error, etc. | Paul Eggert | |
2004-07-28 | Include <stdbool.h>, "inttostr.h". | Paul Eggert | |
(V_STRDUP): Don't assume the string's length fits in int. (ISDIGIT): unsigned -> unsigned int (is_number): Define only ifdef __DJGPP__; not needed elsewhere. Use bool instead of int where appropriate. Do not allow empty strings. (parse_user_spec): Parse numbers as decimal integers, even if they have a leading 0. Don't assume uids and gids fit in int. | |||
2004-04-04 | Sync from gnulib. | Jim Meyering | |
2004-03-03 | Don't include "posixver.h". | Jim Meyering | |
(parse_user_spec): Fall back on USER.GROUP parsing regardless of POSIX version, as POSIX 1003.1-2001 allows that behavior as a compatible extension. Simplify code by removing a boolean int that was always nonzero if a string was nonnull. | |||
2003-11-03 | wrap long copyright line | Jim Meyering | |
2003-10-15 | Include "userspec.h". | Jim Meyering | |
2003-09-13 | Update from gnulib. | Jim Meyering | |
2003-07-10 | Include "posixver.h". | Jim Meyering | |
(parse_user_spec): Accept `.' as a separator only in pre-POSIX-200112 mode. | |||
2003-06-06 | Update from gnulib. | Jim Meyering | |
2002-11-23 | Include gettext.h instead of <libintl.h>. | Jim Meyering | |
2002-01-16 | add 2002 to Copyright line | Jim Meyering | |
2002-01-16 | (ISDIGIT): Comment fix. | Jim Meyering | |
2000-12-16 | This bug had a serious impact on chown: `chown N:M FILE' (for integer | Jim Meyering | |
N and M) would have treated it like `chown N:N FILE'. (parse_user_spec): Fix typo: s/u/g/. | |||
2000-12-16 | tweak a comment | Jim Meyering | |
2000-09-21 | (parse_user_spec): Remove debugging printf I'd added. | Jim Meyering | |
Argh! | |||
2000-09-09 | Don'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-12 | add FIXME comments for use of atoi | Jim Meyering | |
2000-02-12 | (ISDIGIT): Define it. | Jim Meyering | |
(isdigit): Remove definition. (is_number): Use ISDIGIT, not isdigit. | |||
1998-12-19 | break long line | Jim Meyering | |
1998-12-19 | break long line | Jim Meyering | |
1998-12-07 | ansideclify | Jim Meyering | |
1998-05-10 | Don't declare strdup if it's defined as a macro. | Jim Meyering | |
Reported by Lorne Baker. | |||
1998-03-15 | Use #if, not #ifdef with HAVE_ macros | Jim Meyering | |
1998-03-10 | (parse_user_spec) [__DJGPP__]: Make function know | Jim 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-06 | Change some #ifdef to #if. | Jim Meyering | |
Indent a cpp directive. | |||
1996-07-15 | update FSF address in copyright | Jim 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-02 | merge with 3.9h | Jim Meyering | |
1994-07-01 | (main): Change #ifdef TESTING to TEST. | Jim Meyering | |
1994-07-01 | Include alloca directives. | Jim Meyering | |
Replace 3 lines with V_STRDUP equivalent. | |||
1994-07-01 | Rewrite. | Jim Meyering | |
1994-03-14 | . | Jim Meyering | |
1994-03-14 | . | Jim Meyering | |
1993-10-26 | merge with 3.9a | Jim Meyering | |
1993-10-12 | merge with 3.8.4c | Jim Meyering | |
1993-10-06 | merge with 3.8.3b | Jim Meyering | |
1993-04-05 | * system.h [rindex, incl, bcopy, bzero]: Ditto. | Jim Meyering | |
* userspec.c [index]: Ditto. | |||
1992-10-31 | Initial revision | Jim Meyering | |